[Pkg-ocaml-maint-commits] r5789 - in /trunk/packages/liquidsoap/trunk/debian: changelog liquidsoap.dirs liquidsoap.postinst

toots at users.alioth.debian.org toots at users.alioth.debian.org
Sun Jun 22 11:09:16 UTC 2008


Author: toots
Date: Sun Jun 22 11:09:15 2008
New Revision: 5789

URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/?sc=1&rev=5789
Log:
Create homedir in postinst...

Modified:
    trunk/packages/liquidsoap/trunk/debian/changelog
    trunk/packages/liquidsoap/trunk/debian/liquidsoap.dirs
    trunk/packages/liquidsoap/trunk/debian/liquidsoap.postinst

Modified: trunk/packages/liquidsoap/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/liquidsoap/trunk/debian/changelog?rev=5789&op=diff
==============================================================================
--- trunk/packages/liquidsoap/trunk/debian/changelog (original)
+++ trunk/packages/liquidsoap/trunk/debian/changelog Sun Jun 22 11:09:15 2008
@@ -1,7 +1,7 @@
 liquidsoap (0.3.7-2) unstable; urgency=low
 
-  * Install /usr/share/liquidsoap directory, needed for
-    liquidsoap user.
+  * Created /usr/share/liquidsoap directory, needed for
+    liguidsoap.
   * Install logrotate file
   * Backported several fixes from upstream:
     + Fix vorbis mono output

Modified: trunk/packages/liquidsoap/trunk/debian/liquidsoap.dirs
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/liquidsoap/trunk/debian/liquidsoap.dirs?rev=5789&op=diff
==============================================================================
--- trunk/packages/liquidsoap/trunk/debian/liquidsoap.dirs (original)
+++ trunk/packages/liquidsoap/trunk/debian/liquidsoap.dirs Sun Jun 22 11:09:15 2008
@@ -2,4 +2,3 @@
 etc/init.d
 var/log/liquidsoap
 var/run/liquidsoap
-usr/share/liquidsoap

Modified: trunk/packages/liquidsoap/trunk/debian/liquidsoap.postinst
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/liquidsoap/trunk/debian/liquidsoap.postinst?rev=5789&op=diff
==============================================================================
--- trunk/packages/liquidsoap/trunk/debian/liquidsoap.postinst (original)
+++ trunk/packages/liquidsoap/trunk/debian/liquidsoap.postinst Sun Jun 22 11:09:15 2008
@@ -24,9 +24,16 @@
 if ! id liquidsoap >/dev/null 2>&1; then
     # Create the new system account
     adduser --system --disabled-password --disabled-login \
-    --home /usr/share/liquidsoap --no-create-home --ingroup liquidsoap liquidsoap
+    --home /usr/share/liquidsoap --ingroup liquidsoap liquidsoap
 fi
 
+# Add again /usr/share/liquidsoap if user was already created
+if ! test -d /usr/share/liquidsoap; then
+    mkdir /usr/share/liquidsoap
+fi
+
+# Fix directories ownership
+chown -R root:root /usr/share/liquidsoap
 chown -R liquidsoap:liquidsoap /var/log/liquidsoap /var/run/liquidsoap
 
 #DEBHELPER#




More information about the Pkg-ocaml-maint-commits mailing list