diff --git a/conf/systemd.service b/conf/systemd.service index 9eb2f98..570d65a 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -5,7 +5,7 @@ After=nginx.service network.target local-fs.target postgresql.service [Service] Type=simple User=www-data -ExecStart=/usr/bin/php daemon.php start --url=https://__DOMAIN____PATH__ --port=__PORT__ +ExecStart=/usr/bin/php daemon.php start --interface=127.0.0.1 --url=https://__DOMAIN____PATH__ --port=__PORT__ WorkingDirectory=__FINALPATH__ StandardOutput=syslog SyslogIdentifier=__APP__ diff --git a/scripts/remove b/scripts/remove index 0ac2463..74b98f5 100644 --- a/scripts/remove +++ b/scripts/remove @@ -63,10 +63,18 @@ ynh_script_progression --message="Removing app main directory..." --weight=6 # Remove the app directory securely ynh_secure_remove --file="$final_path" +#================================================= +# REMOVE APP CACHE DIR +#================================================= +ynh_script_progression --message="Removing app cache directory..." --weight=6 + +# Remove the app directory securely +ynh_secure_remove --file="/home/$app" + #================================================= # REMOVE PHP-FPM CONFIGURATION #================================================= -ynh_script_progression --message="Removing PHP-fpm configuration..." --weight=2 +ynh_script_progression --message="Removing PHP-FPM configuration..." --weight=2 # Remove the dedicated php-fpm config ynh_remove_fpm_config