From d0a0db7b087eeaf0a903674122a8487599946641 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 9 Aug 2015 16:47:52 -0300 Subject: Remove excessive permission fixes --- lib/httracker/functions | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lib/httracker') diff --git a/lib/httracker/functions b/lib/httracker/functions index 050810d..7870f09 100644 --- a/lib/httracker/functions +++ b/lib/httracker/functions @@ -48,10 +48,10 @@ function httracker_get { fi # Fix permissions - if [ "`whoami`" != "$USER" ] && [ "`whoami`" == "root" ]; then - echo "Fixing $TARGET permissions..." - chown -R $USER.$GROUP $TARGET/ - fi + #if [ "`whoami`" != "$USER" ] && [ "`whoami`" == "root" ]; then + # echo "Fixing $TARGET permissions..." + # chown -R $USER.$GROUP $TARGET/ + #fi # Get each URL httrack ${OPTS} ${url} @@ -66,7 +66,7 @@ function httracker_get { # Fix permissions again if [ "`whoami`" != "$USER" ] && [ "`whoami`" == "root" ]; then - echo "Fixing $TARGET permissions again..." + echo "Fixing $TARGET permissions..." chown -R $USER.$GROUP $TARGET/ fi @@ -94,7 +94,7 @@ function httracker_get_incremental { # Grab URLs from the network httrack ${OPTS} --list ${URLS} - # Fix permissions again + # Fix permissions if [ "`whoami`" != "$USER" ] && [ "`whoami`" == "root" ]; then chown -R $USER.$GROUP $TARGET/ fi @@ -136,8 +136,8 @@ function httracker_setup_folders { if [ "`whoami`" == "root" ]; then echo "Fixing $MIRRORS permissions..." - chown -R $USER.$GROUP $MIRRORS - chown -R $USER.$GROUP $TMP + chown $USER.$GROUP $MIRRORS + chown $USER.$GROUP $TMP fi } -- cgit v1.2.3