X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fsystem%2Fcommon_sysadmin.sh;h=cb1753d1acf0370e30b141b26094111a640cdb30;hb=fcd166fbb628f3cb4915da3ef8155096196687f4;hp=0deb72574e5f0c68fb7268bd1920ed146cc764fc;hpb=03b04bb986f93f7dee2d7049b5516277df3aa3dc;p=feisty_meow.git diff --git a/scripts/system/common_sysadmin.sh b/scripts/system/common_sysadmin.sh index 0deb7257..cb1753d1 100644 --- a/scripts/system/common_sysadmin.sh +++ b/scripts/system/common_sysadmin.sh @@ -361,7 +361,7 @@ function maybe_create_site_storage() chmod g+rx "$chow_path" exit_on_error "Failed to add group permissions on the path: $chow_path" # reassert the user's ownership of any directories we might have just created. - chown $(logname) "$chow_path" + chown "$(logname):$(logname)" "$chow_path" exit_on_error "changing ownership to user failed on the path: $chow_path" chow_path="$(dirname "$chow_path")" done