Display warning in case chmod fails
authorDaniel Knittl-Frank <knittl89+git@googlemail.com>
Wed, 7 Mar 2012 14:43:40 +0000 (7 15:43 +0100)
committerDaniel Knittl-Frank <knittl89+git@googlemail.com>
Wed, 7 Mar 2012 14:43:40 +0000 (7 15:43 +0100)
install.sh

index 1112d36..0d3f4bd 100755 (executable)
@@ -38,7 +38,8 @@ if [ -n "$cfg_push" -a "$cfg_permission_control" = "Group" ]; then
        [ -p "$cfg_fixup_queue" ] || mkfifo "$cfg_fixup_queue"
        chown "$cfg_cgi_user""$owngroup" "$cfg_fixup_queue" ||
                echo "WARNING: Cannot chown $cfg_cgi_user.$cfg_owning_group $cfg_fixup_queue"
-       chmod ug+rw "$cfg_fixup_queue"
+       chmod ug+rw "$cfg_fixup_queue" ||
+               echo "WARNING: Cannot chmod $cfg_fixup_queue"
        echo "--- Remember to copy $cfg_basedir/fixupd/ to /root and start fixupd.sh as root"
 fi
 echo "--- Also remember to either start $cfg_basedir/jobd/jobd.sh, or add this"