1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/castopod_ynh.git synced 2024-09-03 18:16:14 +02:00
This commit is contained in:
ericgaspar 2021-04-09 23:44:11 +02:00
parent 2fd6a2f5eb
commit 27155e88ee
No known key found for this signature in database
GPG key ID: 574F281483054D44
3 changed files with 11 additions and 21 deletions

View file

@ -113,14 +113,10 @@ chmod 644 "/etc/cron.d/$app"
# SECURE FILES AND DIRECTORIES
#=================================================
# # Set permissions to app files
# chown -R $app:$app $final_path
# chmod 600 $final_path/.env
chown -R $app: $final_path
chown -R $app:www-data $final_path/writable
chown -R $app:www-data $final_path/public/media
chmod 640 $final_path/.env
# Set permissions to app files
chown -R $app:$app $final_path
#chmod o-rwx $final_path
chmod 600 $final_path/.env
#=================================================
# SETUP SSOWAT

View file

@ -71,13 +71,10 @@ ynh_restore_file --origin_path="$final_path"
# RESTORE USER RIGHTS
#=================================================
# # Set permissions to app files
# chown -R $app:$app $final_path
# chmod 600 $final_path/.env
chown -R root:root $final_path
chown -R www-data:www-data $final_path/writable
chown -R www-data:www-data $final_path/public/media
# Set permissions to app files
chown -R $app:$app $final_path
#chmod o-rwx $final_path
chmod 600 $final_path/.env
#=================================================
# RESTORE THE PHP-FPM CONFIGURATION

View file

@ -107,13 +107,10 @@ ynh_add_fpm_config --package="$extra_php_dependencies"
# SECURE FILES AND DIRECTORIES
#=================================================
# # Set permissions to app files
# chown -R $app:$app $final_path
# chmod 600 $final_path/.env
# Set permissions to app files
chown -R $app:$app $final_path
chown -R www-data:www-data $final_path/writable
chown -R www-data:www-data $final_path/public/media
#chmod o-rwx $final_path
chmod 600 $final_path/.env
#=================================================
# RELOAD NGINX