summaryrefslogtreecommitdiffstats
path: root/proteanos-branding.pkg/prerm
diff options
context:
space:
mode:
Diffstat (limited to 'proteanos-branding.pkg/prerm')
-rw-r--r--proteanos-branding.pkg/prerm14
1 files changed, 14 insertions, 0 deletions
diff --git a/proteanos-branding.pkg/prerm b/proteanos-branding.pkg/prerm
new file mode 100644
index 0000000..11ba0a0
--- /dev/null
+++ b/proteanos-branding.pkg/prerm
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+if [ "x${1}" = 'xremove' ]; then
+ if [ -f /usr/share/branding/www/SHA256SUMS ]; then
+ if [ -f /var/www/index.html ] && \
+ sha256sum -cs /usr/share/branding/www/SHA256SUMS
+ then
+ # /var/www/index.html exists and hasn't been modified by
+ # the user.
+ rm /var/www/index.html
+ fi
+ rm /usr/share/branding/www/SHA256SUMS
+ fi
+fi