From 52e36a2eb07cf2c0be895348086b9d9fa71b97fd Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Sun, 15 Mar 2015 12:38:52 +0100 Subject: [PATCH] baculum: Add links file to deb packages metadata --- gui/baculum/debian/baculum.links | 3 +++ gui/baculum/debian/baculum.postinst | 19 ++++++++----------- 2 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 gui/baculum/debian/baculum.links diff --git a/gui/baculum/debian/baculum.links b/gui/baculum/debian/baculum.links new file mode 100644 index 0000000000..aa56cc61e2 --- /dev/null +++ b/gui/baculum/debian/baculum.links @@ -0,0 +1,3 @@ +usr/share/javascript/excanvas/excanvas.js usr/share/baculum/htdocs/protected/JavaScript/excanvas.js +etc/baculum/baculum.users usr/share/baculum/htdocs/protected/Data/baculum.users +usr/share/doc/baculum/copyright usr/share/baculum/htdocs/LICENSE \ No newline at end of file diff --git a/gui/baculum/debian/baculum.postinst b/gui/baculum/debian/baculum.postinst index 6e0f3b894e..f534378989 100644 --- a/gui/baculum/debian/baculum.postinst +++ b/gui/baculum/debian/baculum.postinst @@ -2,16 +2,13 @@ set -e -if [ "$1" = "configure" ] ; then - chown -R www-data:www-data /etc/baculum - chown -R www-data:www-data /usr/share/baculum/htdocs - chmod 750 /etc/baculum - chmod 750 /usr/share/baculum/htdocs/protected/Data - ln -s -f /usr/share/javascript/excanvas/excanvas.js /usr/share/baculum/htdocs/protected/JavaScript/excanvas.js - ln -s /etc/baculum/baculum.users /usr/share/baculum/htdocs/protected/Data/baculum.users - ln -s /usr/share/doc/baculum/copyright /usr/share/baculum/htdocs/LICENSE -fi +case "$1" in + configure) + chown -R www-data:www-data /etc/baculum + chown -R www-data:www-data /usr/share/baculum/htdocs + chmod 750 /etc/baculum + chmod 750 /usr/share/baculum/htdocs/protected/Data + ;; +esac #DEBHELPER# - -exit 0 \ No newline at end of file -- 2.39.5