u
This commit is contained in:
@@ -77,14 +77,12 @@ deploy_file() {
|
||||
echo "(ignore potential \"chown: cannot access\" error, which will occur if there are no dot-files in the directory)"
|
||||
|
||||
if [[ ${_recursive} != "recursive" ]] ; then
|
||||
echo "one"
|
||||
#chown ${user}:${user} ${_trg_path}*
|
||||
# https://serverfault.com/questions/156437/how-to-chown-a-directory-recursively-including-hidden-files-or-directories
|
||||
#chown ${user}:${user} ${_trg_path}.[^.]*
|
||||
chown ${user}:${user} ${_trg_path}*
|
||||
chown ${user}:${user} ${_trg_path}.[^.]*
|
||||
else
|
||||
echo "recursive"
|
||||
# chown -R ${user}:${user} ${_trg_path}*
|
||||
# chown -R ${user}:${user} ${_trg_path}.[^.]*
|
||||
chown -R ${user}:${user} ${_trg_path}*
|
||||
chown -R ${user}:${user} ${_trg_path}.[^.]*
|
||||
fi
|
||||
else
|
||||
chown ${user}:${user} ${_trg_path}
|
||||
|
||||
Reference in New Issue
Block a user