diff --git a/scripts/backup b/scripts/backup index 641e844..0e57a25 100644 --- a/scripts/backup +++ b/scripts/backup @@ -4,7 +4,6 @@ # IMPORT GENERIC HELPERS #================================================= -# Keep this path for calling _common.sh inside the execution's context of backup and restore scripts source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers diff --git a/scripts/install b/scripts/install index 3769250..d5580b9 100644 --- a/scripts/install +++ b/scripts/install @@ -71,13 +71,10 @@ ynh_replace --match="__APP__" --replace="$app" --file="../hooks/post_user_delete #================================================= ynh_script_progression "Adding system configurations related to $app..." -# Create a dedicated NGINX config ynh_config_add_nginx -# Create a dedicated PHP-FPM config ynh_config_add_phpfpm -# Use logrotate to manage application logfile(s) ynh_config_add_logrotate "$install_dir/var/logs/prod.log" # Create a dedicated Fail2Ban config diff --git a/scripts/remove b/scripts/remove index ec528f5..1cc3851 100644 --- a/scripts/remove +++ b/scripts/remove @@ -12,16 +12,12 @@ source /usr/share/yunohost/helpers #================================================= ynh_script_progression "Removing system configurations related to $app..." -# Remove the app-specific logrotate config ynh_config_remove_logrotate -# Remove the dedicated NGINX config ynh_config_remove_nginx -# Remove the dedicated PHP-FPM config ynh_config_remove_phpfpm -# Remove the dedicated Fail2Ban config ynh_config_remove_fail2ban #================================================= diff --git a/scripts/restore b/scripts/restore index 5e73e7b..b4b5d07 100644 --- a/scripts/restore +++ b/scripts/restore @@ -4,7 +4,6 @@ # IMPORT GENERIC HELPERS #================================================= -# Keep this path for calling _common.sh inside the execution's context of backup and restore scripts source ../settings/scripts/_common.sh source /usr/share/yunohost/helpers diff --git a/scripts/upgrade b/scripts/upgrade index e3d768e..73f9da4 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -12,7 +12,6 @@ source /usr/share/yunohost/helpers #================================================= ynh_script_progression "Upgrading source files..." -# Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir" --full_replace --keep="app/config/parameters.yml var/logs web/assets/images" # Create log dir/file is it useless? @@ -51,15 +50,12 @@ ynh_replace --match="__APP__" --replace="$app" --file="../hooks/post_user_delete #================================================= ynh_script_progression "Upgrading system configurations related to $app..." -# Create a dedicated NGINX config ynh_config_add_nginx -# Create a dedicated PHP-FPM config ynh_config_add_phpfpm ynh_config_add_logrotate "$install_dir/var/logs/prod.log" -# Add fail2ban config ynh_config_add_fail2ban --logpath="$install_dir/var/logs/prod.log" --failregex='app.ERROR: Authentication failure for user "([\w]+)?", from IP ""' # same as install config #=================================================