Use $app instead of $YNH_APP_ID

This commit is contained in:
Josué Tille 2023-12-18 14:35:06 +01:00
parent cd38b3eae1
commit 0747739c76
No known key found for this signature in database
GPG Key ID: 5F259226AD51F2F5

View File

@ -16,9 +16,9 @@ _set_permissions() {
chown -R "$app:$app" "$data_dir"
find $data_dir \( \! -perm u=rwX,g=rX,-o= \
-o \! -user $YNH_APP_ID \
-o \! -group $YNH_APP_ID \) \
-exec chown $YNH_APP_ID:$YNH_APP_ID {} \; \
-o \! -user $app \
-o \! -group $app \) \
-exec chown $app:$app {} \; \
-exec chmod u=rwX,g=rX,o= {} \;
chmod -R u=rwX,g=,o= "$data_dir/.ssh"