Don't need chown of new log dir, clean up some indents
authorScott Cantor <cantor.2@osu.edu>
Mon, 9 Mar 2015 14:09:35 +0000 (14:09 +0000)
committerScott Cantor <cantor.2@osu.edu>
Mon, 9 Mar 2015 14:09:35 +0000 (14:09 +0000)
configs/shibd-amazon.in
configs/shibd-redhat.in
configs/shibd-suse.in

index 2bb42f8..3e4c477 100644 (file)
@@ -53,12 +53,9 @@ start() {
        chown $SHIBD_USER:$SHIBD_USER $pidfile
 
        # Handle transition from root to non-root packages.
-    chown -R $SHIBD_USER:$SHIBD_USER @-PKGRUNDIR-@ @-PKGCACHEDIR-@ 2>/dev/null || :
+       chown -R $SHIBD_USER:$SHIBD_USER @-PKGRUNDIR-@ @-PKGCACHEDIR-@ 2>/dev/null || :
        daemon --user $SHIBD_USER $shibd -p $pidfile -f -w 30
 
-    # Adjust native logging directory permission so log roll-over works
-    chown apache:apache @-SHIRELOGDIR-@
-
        RETVAL=$?
        echo
                [ $RETVAL -eq 0 ] && touch $lockfile
index 90c4e4f..3e4c477 100644 (file)
@@ -56,9 +56,6 @@ start() {
        chown -R $SHIBD_USER:$SHIBD_USER @-PKGRUNDIR-@ @-PKGCACHEDIR-@ 2>/dev/null || :
        daemon --user $SHIBD_USER $shibd -p $pidfile -f -w 30
 
-    # Adjust native logging directory permission so log roll-over works
-    chown apache:apache @-SHIRELOGDIR-@
-
        RETVAL=$?
        echo
                [ $RETVAL -eq 0 ] && touch $lockfile
index 4770ff1..318499f 100644 (file)
@@ -57,9 +57,6 @@ case "$1" in
         # Handle transition from root to non-root packages.
         chown -R $SHIBD_USER:$SHIBD_USER @-PKGRUNDIR-@ @-PKGCACHEDIR-@ 2>/dev/null || :
                
-        # Adjust native logging directory permission so log roll-over works
-        chown wwwrun:www @-SHIRELOGDIR-@
-               
         echo -n "Starting $DESC ($NAME)"
         ## Start daemon with startproc(8). If this fails
         ## the echo return value is set appropriate.