[pkg-freevo-commits] r128 - packages/freevo/trunk/debian

mennucc1 at alioth.debian.org mennucc1 at alioth.debian.org
Sat May 17 20:50:48 UTC 2008


Author: mennucc1
Date: 2008-05-17 20:50:47 +0000 (Sat, 17 May 2008)
New Revision: 128

Modified:
   packages/freevo/trunk/debian/freevo.freevo_xserver.init
   packages/freevo/trunk/debian/freevo.postinst
   packages/freevo/trunk/debian/freevo.postrm
   packages/freevo/trunk/debian/freevo.template.init
Log:
add other '--shell /bin/sh' to 'su'


Modified: packages/freevo/trunk/debian/freevo.freevo_xserver.init
===================================================================
--- packages/freevo/trunk/debian/freevo.freevo_xserver.init	2008-05-17 20:36:30 UTC (rev 127)
+++ packages/freevo/trunk/debian/freevo.freevo_xserver.init	2008-05-17 20:50:47 UTC (rev 128)
@@ -53,13 +53,13 @@
 
 stop_freevo() {
     log_action_msg "Sopping Freevo Home Theatre PC Platform (frontend)"
-    su freevo -c "$DAEMON stop"    
+    su --shell /bin/sh freevo -c "$DAEMON stop"    
     log_action_end_msg $?
 }
 
 restart_freevo() {
     log_action_msg "Restarting Freevo Home Theatre PC Platform (frontend)"
-    su freevo -c "$DAEMON stop"
+    su --shell /bin/sh freevo -c "$DAEMON stop"
     sleep 5
     startx_freevo
     log_action_end_msg $?

Modified: packages/freevo/trunk/debian/freevo.postinst
===================================================================
--- packages/freevo/trunk/debian/freevo.postinst	2008-05-17 20:36:30 UTC (rev 127)
+++ packages/freevo/trunk/debian/freevo.postinst	2008-05-17 20:50:47 UTC (rev 128)
@@ -45,7 +45,7 @@
 	  :  # maybe using find "$1"  -maxdepth 0 -printf '%u' | grep -qx freevo 
 	fi
     fi
-    su freevo -c "touch \"$1\"/.placeholder" ||	   {
+    su --shell /bin/sh freevo -c "touch \"$1\"/.placeholder" ||	   {
 	echo "WARNING: 'freevo' user cannot create files in $2 directory  $1 , " 1>&2
 	echo "  freevo will malfunction  " 1>&2 ;  }
 }
@@ -123,7 +123,7 @@
 }
 
 freevo_cache() {
-	su freevo -c '$DAEMON.real cache'
+	su --shell /bin/sh freevo -c '$DAEMON.real cache'
 	find $FREEVO_CACHEDIR -type f -print0 | xargs -0 chmod 0664
 	find $FREEVO_CACHEDIR -type d -print0 | xargs -0 chmod 0775
 }
@@ -136,9 +136,9 @@
      ( exec  >  $t 2> $t
        mv $a $a~oldformat
        invoke-rc.d freevo_recordserver stop 
-       su freevo -c "freevo convert_favorites $a~oldformat"  
+       su --shell /bin/sh freevo -c "freevo convert_favorites $a~oldformat"  
        invoke-rc.d freevo_recordserver start
-       su freevo -c "freevo schedulefavorites" 
+       su --shell /bin/sh freevo -c "freevo schedulefavorites" 
      )
     fi
 }

Modified: packages/freevo/trunk/debian/freevo.postrm
===================================================================
--- packages/freevo/trunk/debian/freevo.postrm	2008-05-17 20:36:30 UTC (rev 127)
+++ packages/freevo/trunk/debian/freevo.postrm	2008-05-17 20:50:47 UTC (rev 128)
@@ -8,7 +8,7 @@
 	;;
 	purge|abort-install)
 		if [  "$FREEVO_CACHEDIR" -a -d "$FREEVO_CACHEDIR" ] ; then
-		    su freevo -c "rm -rf \"$FREEVO_CACHEDIR\""
+		    su --shell /bin/sh freevo -c "rm -rf \"$FREEVO_CACHEDIR\""
 		fi
 		if [ -d /etc/freevo ] ; then
 			rm -rf /etc/freevo

Modified: packages/freevo/trunk/debian/freevo.template.init
===================================================================
--- packages/freevo/trunk/debian/freevo.template.init	2008-05-17 20:36:30 UTC (rev 127)
+++ packages/freevo/trunk/debian/freevo.template.init	2008-05-17 20:50:47 UTC (rev 128)
@@ -18,7 +18,7 @@
 
 if [ `id -u` = 0 ] ; then
   #echo switching to freevo user
-  exec su freevo -c "$0 $@"
+  exec su --shell /bin/sh freevo -c "$0 $@"
 fi
 
 . /lib/lsb/init-functions




More information about the Pkg-freevo-commits mailing list