diff --git a/manifest.toml b/manifest.toml index a6e6a93..29be5d6 100644 --- a/manifest.toml +++ b/manifest.toml @@ -49,7 +49,7 @@ ram.runtime = "50M" main.url = "/" [resources.apt] - packages = "mariadb-server, php8.2-curl, php8.2-mbstring, php8.2-mysql, php8.2-xml" + packages = "mariadb-server, php8.2-curl, php8.2-mbstring, php8.2-mysql, php8.2-xml, php8.2-openssl" [resources.database] type = "mysql" diff --git a/scripts/install b/scripts/install index b526c83..0128630 100755 --- a/scripts/install +++ b/scripts/install @@ -26,16 +26,13 @@ chown -R $app:www-data "$install_dir" #================================================= ynh_script_progression --message="Adding system configurations related to $app..." --weight=1 -# Create a dedicated PHP-FPM config using the conf/php-fpm.conf or conf/extra_php-fpm.conf -ynh_add_fpm_config --usage=low --footprint=low +ynh_add_fpm_config -# Create a dedicated NGINX config using the conf/nginx.conf template ynh_add_nginx_config -# Use logrotate to manage application logfile(s) ynh_use_logrotate -ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app" +ynh_add_config --template="cron" --destination="/etc/cron.d/$app" chown root: "/etc/cron.d/$app" chmod 644 "/etc/cron.d/$app" diff --git a/scripts/restore b/scripts/restore index ec6e678..bbfa999 100755 --- a/scripts/restore +++ b/scripts/restore @@ -48,7 +48,6 @@ ynh_restore_file --origin_path="/etc/cron.d/$app" #================================================= ynh_script_progression --message="Reloading NGINX web server and $app's service..." --weight=1 -# Typically you only have either $app or php-fpm but not both at the same time... ynh_systemd_action --service_name=php$phpversion-fpm --action=reload ynh_systemd_action --service_name=nginx --action=reload diff --git a/scripts/upgrade b/scripts/upgrade index 1725046..2eed8cd 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -32,7 +32,7 @@ chown -R $app:www-data "$install_dir" #================================================= ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1 -ynh_add_fpm_config --usage=low --footprint=low +ynh_add_fpm_config ynh_add_nginx_config