diff --git a/scripts/install b/scripts/install index ef2639c..7aff9b2 100644 --- a/scripts/install +++ b/scripts/install @@ -21,7 +21,6 @@ ynh_install_nodejs --nodejs_version=$nodejs_version #================================================= ynh_script_progression --message="Setting up source files..." --weight=1 -# Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir" chmod -R o-rwx "$install_dir" @@ -32,11 +31,9 @@ chown -R $app:www-data "$install_dir" #================================================= ynh_script_progression --message="Configuring NGINX web server..." --weight=4 -# Create a dedicated NGINX config ynh_add_nginx_config env_path="$PATH" -# Create a dedicated systemd config ynh_add_systemd_config yunohost service add $app --description="Peer-to-peer file transfers" --log="/var/log/$app/$app.log" @@ -57,7 +54,6 @@ popd #================================================= ynh_script_progression --message="Starting a systemd service..." --weight=6 -# Start a systemd service ynh_systemd_action --service_name=$app --action=restart --log_path="systemd" #================================================= diff --git a/scripts/remove b/scripts/remove index 9fff982..4b74a36 100644 --- a/scripts/remove +++ b/scripts/remove @@ -15,20 +15,16 @@ source /usr/share/yunohost/helpers # REMOVE SERVICE INTEGRATION IN YUNOHOST #================================================= -# Remove the service from the list of services known by YunoHost (added from `yunohost service add`) if ynh_exec_warn_less yunohost service status $app >/dev/null then ynh_script_progression --message="Removing $app service integration..." --weight=2 yunohost service remove $app fi -# Remove the dedicated systemd config ynh_remove_systemd_config -# Remove the dedicated NGINX config ynh_remove_nginx_config -# Remove metapackage and its dependencies ynh_remove_nodejs #================================================= diff --git a/scripts/restore b/scripts/restore index c63a02b..63c710d 100644 --- a/scripts/restore +++ b/scripts/restore @@ -24,7 +24,6 @@ chown -R $app:www-data "$install_dir" #================================================= ynh_script_progression --message="Reinstalling dependencies..." --weight=7 -# Install Nodejs ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index f20b5da..b241cb6 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -32,7 +32,6 @@ if [ "$upgrade_type" == "UPGRADE_APP" ] then ynh_script_progression --message="Upgrading source files..." --weight=1 - # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir" fi @@ -44,14 +43,11 @@ chown -R $app:www-data "$install_dir" #================================================= ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=1 -# Create a dedicated NGINX config ynh_add_nginx_config -# Install Nodejs ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version env_path="$PATH" -# Create a dedicated systemd config ynh_add_systemd_config yunohost service add $app --description="Peer-to-peer file transfers" --log="/var/log/$app/$app.log"