]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Add links file to deb packages metadata
authorMarcin Haba <marcin.haba@bacula.pl>
Sun, 15 Mar 2015 11:38:52 +0000 (12:38 +0100)
committerMarcin Haba <marcin.haba@bacula.pl>
Sun, 15 Mar 2015 11:38:52 +0000 (12:38 +0100)
gui/baculum/debian/baculum.links [new file with mode: 0644]
gui/baculum/debian/baculum.postinst

diff --git a/gui/baculum/debian/baculum.links b/gui/baculum/debian/baculum.links
new file mode 100644 (file)
index 0000000..aa56cc6
--- /dev/null
@@ -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
index 6e0f3b894e484b7f210fb9a55835ccce24e3fc23..f53437898910b0c1280f0cf40cc5f458140d0664 100644 (file)
@@ -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