diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-08-25 20:18:44 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-08-25 20:18:44 -0300 |
commit | 1b2ec12dc24955a6925abbcacc7df103e96681d5 (patch) | |
tree | 9d2b4733599c5c96fa6e46bfc08291d6c992fede /lib/httracker | |
parent | d895c52d6c00bbeac3c5a884d1e88f6ff6b00257 (diff) | |
download | httruta-1b2ec12dc24955a6925abbcacc7df103e96681d5.tar.gz httruta-1b2ec12dc24955a6925abbcacc7df103e96681d5.tar.bz2 |
Setting folder permissions
Diffstat (limited to 'lib/httracker')
-rw-r--r-- | lib/httracker/functions | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/httracker/functions b/lib/httracker/functions index fa52ed4..bb3dc07 100644 --- a/lib/httracker/functions +++ b/lib/httracker/functions @@ -79,3 +79,12 @@ function httracker_iterate { httracker_get "$link" done } + +function httracker_setup_folders { + mkdir -p $MIRRORS $TMP + chown -R $USER.$GROUP $TMP + + if [ "`whoami`" == "root" ]; then + chown -R $USER.$GROUP $TMP + fi +} |