mirror of
https://github.com/YunoHost-Apps/agendav_ynh.git
synced 2024-09-03 20:36:12 +02:00
Fix
This commit is contained in:
parent
d0a416ccd1
commit
31ceb67e89
3 changed files with 27 additions and 7 deletions
|
@ -166,16 +166,19 @@ ynh_use_logrotate
|
||||||
# SECURE FILES AND DIRECTORIES
|
# SECURE FILES AND DIRECTORIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
chown -R root: $final_path
|
chmod 750 "$final_path"
|
||||||
|
chmod -R o-rwx "$final_path"
|
||||||
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
# Only AgenDav user should write here
|
# Only AgenDav user should write here
|
||||||
chown -R $app ${final_path}/web/var/cache/{profiler,twig}
|
chown -R $app ${final_path}/web/var/cache/{profiler,twig}
|
||||||
|
|
||||||
# The AgenDav user should read here, but does not need to write
|
# The AgenDav user should read here, but does not need to write
|
||||||
# Other users should not be able to read as it stores passwords.
|
# Other users should not be able to read as it stores passwords.
|
||||||
chown -R root:$app ${final_path}/web/config/
|
chown -R $app ${final_path}/web/config/
|
||||||
chmod -R 750 ${final_path}/web/config/
|
chmod -R 750 ${final_path}/web/config/
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD NGINX
|
# RELOAD NGINX
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -74,6 +74,14 @@ chown -R $app ${final_path}/web/var/cache/{profiler,twig}
|
||||||
chown -R root:$app ${final_path}/web/config/
|
chown -R root:$app ${final_path}/web/config/
|
||||||
chmod -R 750 ${final_path}/web/config/
|
chmod -R 750 ${final_path}/web/config/
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# REINSTALL DEPENDENCIES
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Reinstalling dependencies..." --weight=1
|
||||||
|
|
||||||
|
# Define and install dependencies
|
||||||
|
ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE PHP-FPM CONFIGURATION
|
# RESTORE THE PHP-FPM CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -113,10 +113,17 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." -
|
||||||
# Copy and set NGINX configuration
|
# Copy and set NGINX configuration
|
||||||
ynh_add_nginx_config
|
ynh_add_nginx_config
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# UPGRADE DEPENDENCIES
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Upgrading dependencies..." --weight=1
|
||||||
|
|
||||||
|
ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PHP-FPM CONFIGURATION
|
# PHP-FPM CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Upgrading PHP-FPM configuration..."
|
ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=1
|
||||||
|
|
||||||
# Create a dedicated PHP-FPM config
|
# Create a dedicated PHP-FPM config
|
||||||
ynh_add_fpm_config
|
ynh_add_fpm_config
|
||||||
|
@ -149,14 +156,16 @@ ynh_use_logrotate --non-append
|
||||||
# SECURE FILES AND DIRECTORIES
|
# SECURE FILES AND DIRECTORIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
chown -R root: $final_path
|
chmod 750 "$final_path"
|
||||||
|
chmod -R o-rwx "$final_path"
|
||||||
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
# Only agendav user should write here
|
# Only AgenDav user should write here
|
||||||
chown -R $app ${final_path}/web/var/cache/{profiler,twig}
|
chown -R $app ${final_path}/web/var/cache/{profiler,twig}
|
||||||
|
|
||||||
# The agendav user should read here, but does not need to write
|
# The AgenDav user should read here, but does not need to write
|
||||||
# Other users should not be able to read as it stores passwords.
|
# Other users should not be able to read as it stores passwords.
|
||||||
chown -R root:$app ${final_path}/web/config/
|
chown -R $app ${final_path}/web/config/
|
||||||
chmod -R 750 ${final_path}/web/config/
|
chmod -R 750 ${final_path}/web/config/
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue