From b8b38315bfd558190cbf607d14d154da31e322cf Mon Sep 17 00:00:00 2001 From: committer Date: Sun, 19 May 2024 22:19:41 -0500 Subject: [PATCH] / chown symbolic links --- scripts/99_deploy.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/99_deploy.sh b/scripts/99_deploy.sh index 75f94c8..76a2178 100644 --- a/scripts/99_deploy.sh +++ b/scripts/99_deploy.sh @@ -90,12 +90,17 @@ deploy_file() { # 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 -h ${user}:${user} ${_trg_path}* + chown -h ${user}:${user} ${_trg_path}.[^.]* else chown -R ${user}:${user} ${_trg_path}* chown -R ${user}:${user} ${_trg_path}.[^.]* + chown -h -R ${user}:${user} ${_trg_path}* + chown -h -R ${user}:${user} ${_trg_path}.[^.]* fi else chown ${user}:${user} ${_trg_path} + chown -h ${user}:${user} ${_trg_path} fi fi