summaryrefslogtreecommitdiffstats
path: root/proteanos-branding.pkg/postinst
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-25 12:32:09 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-25 12:32:09 (EDT)
commite162aef75e37eee42eb8689b3b432210cedc7198 (patch)
tree826f5e6368ebceec5c2890da1f1083272b932303 /proteanos-branding.pkg/postinst
parent4f365deb31cdbf9da89abb474b3c05f3eb2882c6 (diff)
Manage branding link in maintainer scripts.
Diffstat (limited to 'proteanos-branding.pkg/postinst')
-rw-r--r--proteanos-branding.pkg/postinst4
1 files changed, 4 insertions, 0 deletions
diff --git a/proteanos-branding.pkg/postinst b/proteanos-branding.pkg/postinst
index ea2ecad..09610a7 100644
--- a/proteanos-branding.pkg/postinst
+++ b/proteanos-branding.pkg/postinst
@@ -6,6 +6,8 @@ if [ "x${1}" = 'xconfigure' ]; then
cp /usr/share/branding/www/index.html /var/www/index.html
sha256sum /var/www/index.html \
>/usr/share/branding/www/SHA256SUMS
+ [ -e /var/www/branding ] || \
+ ln -s /usr/share/branding /var/www/branding
elif [ -f /var/www/index.html ] && \
[ -f /usr/share/branding/www/SHA256SUMS ]; then
if sha256sum -cs /usr/share/branding/www/SHA256SUMS; then
@@ -15,6 +17,8 @@ if [ "x${1}" = 'xconfigure' ]; then
/var/www/index.html
sha256sum /var/www/index.html \
>/usr/share/branding/www/SHA256SUMS
+ [ -e /var/www/branding ] || \
+ ln -s /usr/share/branding /var/www/branding
fi
fi
fi