tweak permissions in manifest and conf/install
This commit is contained in:
parent
fb171c8e65
commit
5ccc9c7b3c
2 changed files with 3 additions and 3 deletions
|
@ -67,7 +67,7 @@ ram.runtime = "100M"
|
|||
sha256 = "f92a6dc9c98ec1e3837939db571833d28e72b992f5a9611925e9d242fcb40f72"
|
||||
|
||||
[resources.system_user]
|
||||
#user = "__APP_NAME__:rwx"
|
||||
user = "__APP_NAME__:rwx"
|
||||
|
||||
[resources.install_dir]
|
||||
group = "www-data:r-x"
|
||||
|
|
|
@ -57,7 +57,7 @@ ynh_script_progression "Adding $app's configuration files..."
|
|||
ynh_config_add --template=.env --destination="$install_dir/.env"
|
||||
|
||||
chmod 600 "$install_dir/.env"
|
||||
chown "$app:$app" "$install_dir/.env"
|
||||
chown "$app:www-data" "$install_dir/.env"
|
||||
|
||||
|
||||
#=================================================
|
||||
|
@ -124,7 +124,7 @@ ynh_store_file_checksum "$install_dir/.env"
|
|||
app_key=$(cat $install_dir/.env | grep -e ^APP_KEY | cut -c 9-)
|
||||
ynh_app_setting_set --key=app_key --value=$app_key
|
||||
|
||||
chgrp "$app" -R "$install_dir/storage" "$install_dir/public"
|
||||
chgrp "$app:www-data" -R "$install_dir/storage" "$install_dir/public"
|
||||
chmod -R 2775 "$install_dir/storage" "$install_dir/app" "$install_dir/public" "$install_dir/bootstrap/"
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue