All pastes #331426 Raw Edit

Stuff

public text v1 · immutable
#331426 ·published 2007-01-28 21:46 UTC
rendered paste body
--- emc2.postinst	27 Jan 2007 16:19:47 -0000	1.1.2.2
+++ emc2.postinst	28 Jan 2007 21:46:28 -0000
@@ -1,8 +1,8 @@
 #!/bin/sh
 [ -x /etc/init.d/udev ] && /etc/init.d/udev restart
-
+if [ $HOME = "/root" ]; then HOME=$(eval echo ~$USERNAME); fi
 unud=/var/lib/update-notifier/user.d
-if test -d ~/emc2/configs && test -d $unud; then
+if test -d $HOME/emc2/configs && test -d $unud; then
 case $2 in 
 1:2.0.*)
     cat <<END >$unud/emc2-configs-changed