From 157df766da583bf2ee12ada656c5336979a16080 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 20 Sep 2020 16:05:45 +0200 Subject: [PATCH] Remove nodejs --- scripts/install | 15 ++++----------- scripts/remove | 4 ++-- scripts/restore | 9 +-------- scripts/upgrade | 11 ++--------- 4 files changed, 9 insertions(+), 30 deletions(-) diff --git a/scripts/install b/scripts/install index 40ca6d8..c50a78c 100644 --- a/scripts/install +++ b/scripts/install @@ -59,13 +59,6 @@ ynh_script_progression --message="Configuring firewall..." port=$(ynh_find_port --port=8095) ynh_app_setting_set --app=$app --key=port --value=$port -#================================================= -# ADD NODEJS REPOSITORY -#================================================= -ynh_script_progression --message="Add nodejs repository..." - -ynh_install_extra_repo --repo="deb https://deb.nodesource.com/node_10.x stretch main" --key="https://deb.nodesource.com/gpgkey/nodesource.gpg.key" - #================================================= # ADD ONLYOFFICE REPOSITORY #================================================= @@ -106,7 +99,7 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path #================================================= # NGINX CONFIGURATION #================================================= -ynh_script_progression --message="Configuring nginx web server..." +ynh_script_progression --message="Configuring NGINX web server..." if [ $path_url = "/" ]; then ynh_replace_string --match_string="__SUB_PATH__" --replace_string="" --target_file="../conf/nginx.conf" @@ -114,7 +107,7 @@ else ynh_replace_string --match_string="__SUB_PATH__" --replace_string="$path_url" --target_file="../conf/nginx.conf" fi -# Create a dedicated nginx config +# Create a dedicated NGINX config ynh_add_nginx_config "nextclouddomain" #================================================= @@ -130,7 +123,7 @@ ynh_system_user_create --username=$app #================================================= # CONFIGURE ONLYOFFICE #================================================= -ynh_script_progression --message="Configuring Onlyoffice..." +ynh_script_progression --message="Configuring OnlyOffice..." echo onlyoffice-documentserver onlyoffice/ds-port select $port | debconf-set-selections echo onlyoffice-documentserver onlyoffice/db-host string 127.0.0.1 | debconf-set-selections @@ -197,7 +190,7 @@ fi #================================================= # RELOAD NGINX #================================================= -ynh_script_progression --message="Reloading nginx web server..." +ynh_script_progression --message="Reloading NGINX web server..." ynh_systemd_action --service_name=nginx --action=reload diff --git a/scripts/remove b/scripts/remove index 1183c5f..de65793 100644 --- a/scripts/remove +++ b/scripts/remove @@ -72,9 +72,9 @@ ynh_secure_remove --file="$final_path" #================================================= # REMOVE NGINX CONFIGURATION #================================================= -ynh_script_progression --message="Removing nginx web server configuration..." +ynh_script_progression --message="Removing NGINX web server configuration..." -# Remove the dedicated nginx config +# Remove the dedicated NGINX config ynh_remove_nginx_config #================================================= diff --git a/scripts/restore b/scripts/restore index 38d6d93..db4fff4 100644 --- a/scripts/restore +++ b/scripts/restore @@ -60,13 +60,6 @@ ynh_system_user_create --username=$app #================================================= # SPECIFIC RESTORATION -#================================================= -# ADD NODEJS REPOSITORY -#================================================= -ynh_script_progression --message="Add nodejs repository..." - -ynh_install_extra_repo --repo="deb https://deb.nodesource.com/node_10.x stretch main" --key="https://deb.nodesource.com/gpgkey/nodesource.gpg.key" - #================================================= # ADD ONLYOFFICE REPOSITORY #================================================= @@ -138,7 +131,7 @@ sleep 30 #================================================= # RELOAD NGINX #================================================= -ynh_script_progression --message="Reloading nginx web server..." +ynh_script_progression --message="Reloading NGINX web server..." ynh_systemd_action --service_name=nginx --action=reload diff --git a/scripts/upgrade b/scripts/upgrade index ba9c851..68b7900 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -109,13 +109,6 @@ ynh_system_user_create --username=$app #================================================= # SPECIFIC UPGRADE -#================================================= -# ADD NODEJS REPOSITORY -#================================================= -ynh_script_progression --message="Add nodejs repository..." - -ynh_install_extra_repo --repo="deb https://deb.nodesource.com/node_10.x stretch main" --key="https://deb.nodesource.com/gpgkey/nodesource.gpg.key" - #================================================= # ADD ONLYOFFICE REPOSITORY #================================================= @@ -127,7 +120,7 @@ ynh_install_extra_repo --repo="deb http://download.onlyoffice.com/repo/debian sq #================================================= # CONFIGURE ONLYOFFICE #================================================= -ynh_script_progression --message="Configuring Onlyoffice..." +ynh_script_progression --message="Configuring OnlyOffice..." ynh_backup_if_checksum_is_different --file="/etc/onlyoffice/documentserver/default.json" echo onlyoffice-documentserver onlyoffice/ds-port select $port | debconf-set-selections @@ -188,7 +181,7 @@ sleep 30 #================================================= # RELOAD NGINX #================================================= -ynh_script_progression --message="Reloading nginx web server..." +ynh_script_progression --message="Reloading NGINX web server..." ynh_systemd_action --service_name=nginx --action=reload