mirror of
https://github.com/YunoHost-Apps/castopod_ynh.git
synced 2024-09-03 18:16:14 +02:00
Fix
This commit is contained in:
parent
2fd6a2f5eb
commit
27155e88ee
3 changed files with 11 additions and 21 deletions
|
@ -113,14 +113,10 @@ chmod 644 "/etc/cron.d/$app"
|
||||||
# SECURE FILES AND DIRECTORIES
|
# SECURE FILES AND DIRECTORIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# # Set permissions to app files
|
# Set permissions to app files
|
||||||
# chown -R $app:$app $final_path
|
chown -R $app:$app $final_path
|
||||||
# chmod 600 $final_path/.env
|
#chmod o-rwx $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
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
|
|
|
@ -71,13 +71,10 @@ ynh_restore_file --origin_path="$final_path"
|
||||||
# RESTORE USER RIGHTS
|
# RESTORE USER RIGHTS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# # Set permissions to app files
|
# Set permissions to app files
|
||||||
# chown -R $app:$app $final_path
|
chown -R $app:$app $final_path
|
||||||
# chmod 600 $final_path/.env
|
#chmod o-rwx $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
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE PHP-FPM CONFIGURATION
|
# RESTORE THE PHP-FPM CONFIGURATION
|
||||||
|
|
|
@ -107,13 +107,10 @@ ynh_add_fpm_config --package="$extra_php_dependencies"
|
||||||
# SECURE FILES AND DIRECTORIES
|
# SECURE FILES AND DIRECTORIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# # Set permissions to app files
|
# Set permissions to app files
|
||||||
# chown -R $app:$app $final_path
|
|
||||||
# chmod 600 $final_path/.env
|
|
||||||
|
|
||||||
chown -R $app:$app $final_path
|
chown -R $app:$app $final_path
|
||||||
chown -R www-data:www-data $final_path/writable
|
#chmod o-rwx $final_path
|
||||||
chown -R www-data:www-data $final_path/public/media
|
chmod 600 $final_path/.env
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD NGINX
|
# RELOAD NGINX
|
||||||
|
|
Loading…
Add table
Reference in a new issue