1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yellow_ynh.git synced 2024-09-03 20:36:12 +02:00
This commit is contained in:
Éric Gaspar 2023-02-07 13:56:01 +01:00
parent 215aeb992f
commit 880bb15102
2 changed files with 21 additions and 11 deletions

View file

@ -4,6 +4,8 @@
# COMMON VARIABLES
#=================================================
YNH_PHP_VERSION="8.0"
#=================================================
# PERSONAL HELPERS
#=================================================

View file

@ -18,17 +18,9 @@ ynh_script_progression --message="Setting up source files..." --weight=7
ynh_setup_source --dest_dir="$install_dir"
# Set permissions to app files
chmod 750 "$install_dir"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
#=================================================
# NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Configuring NGINX web server..." --weight=2
# Create a dedicated NGINX config
ynh_add_nginx_config
#chmod 750 "$install_dir"
#chmod -R o-rwx "$install_dir"
#chown -R $app:www-data "$install_dir"
#=================================================
# PHP-FPM CONFIGURATION
@ -38,6 +30,22 @@ ynh_script_progression --message="Configuring PHP-FPM..." --weight=2
# Create a dedicated PHP-FPM config
ynh_add_fpm_config --usage=low --footprint=low
#=================================================
# NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Configuring NGINX web server..." --weight=2
# Create a dedicated NGINX config
ynh_add_nginx_config
#=================================================
# SECURE FILES AND DIRECTORIES
#=================================================
# Set permissions to app files
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
#=================================================
# END OF SCRIPT
#=================================================