From 276fa3277dddd084d5bf300cf35d8643481bc442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 19 Apr 2023 09:45:43 +0200 Subject: [PATCH] cleaning --- manifest.toml | 1 + scripts/install | 14 -------------- scripts/remove | 20 -------------------- 3 files changed, 1 insertion(+), 34 deletions(-) diff --git a/manifest.toml b/manifest.toml index 6cc23ce..e3d266b 100644 --- a/manifest.toml +++ b/manifest.toml @@ -59,6 +59,7 @@ ram.runtime = "50M" [resources.install_dir] [resources.data_dir] + subdirs = ".ssh" [resources.permissions] main.url = "/" diff --git a/scripts/install b/scripts/install index d4700ad..072b91d 100644 --- a/scripts/install +++ b/scripts/install @@ -45,20 +45,6 @@ ynh_script_progression --message="Configuring NGINX web server..." --weight=2 ynh_add_nginx_config -#================================================= -# CREATE DATA DIRECTORY -#================================================= -ynh_script_progression --message="Creating a data directory..." --weight=1 - -#if [ -e "$data_dir" ]; then -# old_data_dir_path="$data_dir$(date '+%Y%m%d.%H%M%S')" -# ynh_print_warn "A data directory already exist. Data was renamed to $old_data_dir_path" -# mv "$data_dir" "$old_data_dir_path" -#fi - -mkdir -p "$data_dir/.ssh" -chmod u=rwx,g=,o= "$data_dir/.ssh" - #================================================= # ADD A CONFIGURATION #================================================= diff --git a/scripts/remove b/scripts/remove index a4cc846..42a7466 100644 --- a/scripts/remove +++ b/scripts/remove @@ -22,19 +22,9 @@ then yunohost service remove $app fi -#================================================= -# STOP AND REMOVE SERVICE -#================================================= -ynh_script_progression --message="Stopping and removing the systemd service..." --weight=1 - # Remove the dedicated systemd config ynh_remove_systemd_config -#================================================= -# REMOVE LOGROTATE CONFIGURATION -#================================================= -ynh_script_progression --message="Removing logrotate configuration..." --weight=1 - # Remove the app-specific logrotate config ynh_remove_logrotate @@ -81,19 +71,9 @@ ynh_script_progression --message="Removing NGINX web server configuration..." -- # Remove the dedicated NGINX config ynh_remove_nginx_config -#================================================= -# REMOVE FAIL2BAN CONFIGURATION -#================================================= -ynh_script_progression --message="Removing Fail2Ban configuration..." --weight=1 - # Remove the dedicated Fail2Ban config ynh_remove_fail2ban_config -#================================================= -# REMOVE VARIOUS FILES -#================================================= -ynh_script_progression --message="Removing various files..." --weight=1 - ynh_secure_remove --file="/var/log/$app" #=================================================