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" #=================================================