aboutsummaryrefslogtreecommitdiff
path: root/lib/httracker/functions
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2015-08-09 16:47:52 -0300
committerSilvio Rhatto <rhatto@riseup.net>2015-08-09 16:47:52 -0300
commitd0a0db7b087eeaf0a903674122a8487599946641 (patch)
treedbe8952d5eb81f81403350c46a5f39a102c8c4b3 /lib/httracker/functions
parent0c2ad0822e67381a8b1619a3008ca9d91fce8842 (diff)
downloadhttruta-d0a0db7b087eeaf0a903674122a8487599946641.tar.gz
httruta-d0a0db7b087eeaf0a903674122a8487599946641.tar.bz2
Remove excessive permission fixes
Diffstat (limited to 'lib/httracker/functions')
-rw-r--r--lib/httracker/functions16
1 files changed, 8 insertions, 8 deletions
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
}