diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-12-31 14:18:35 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-12-31 14:18:35 -0500 |
commit | b220202c57cde13273af84e4954dbbccd2824c42 (patch) | |
tree | 67df531dc366fe8b34fab14e6abf01de90124115 /cron-jobs/ftpdir-cleanup | |
parent | 563cf021c96446aa15a41c1f532067d13d880b41 (diff) | |
parent | e6294556d3197b7d87f7659355d0e189fad613d6 (diff) |
Merge branch 'cleanup4' into db-import2
Diffstat (limited to 'cron-jobs/ftpdir-cleanup')
-rwxr-xr-x | cron-jobs/ftpdir-cleanup | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/cron-jobs/ftpdir-cleanup b/cron-jobs/ftpdir-cleanup index e1294bd..e42a1a8 100755 --- a/cron-jobs/ftpdir-cleanup +++ b/cron-jobs/ftpdir-cleanup @@ -1,16 +1,7 @@ #!/bin/bash -. "$(dirname $0)/../config" -. "$(dirname $0)/../db-functions" - -# just like mv -f, but we touch the file and then copy the content so -# default ACLs in the target dir will be applied -mv_acl() { - rm -f "$2" - touch "$2" - cat "$1" >"$2" || return 1 - rm -f "$1" -} +. "$(dirname "$(readlink -e "$0")")/../config" +. "$(dirname "$(readlink -e "$0")")/../db-functions" clean_pkg() { local pkg |