diff --git a/scripts/install b/scripts/install index b24ea50..b9b6f53 100755 --- a/scripts/install +++ b/scripts/install @@ -94,14 +94,15 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version #================================================= # ADD SYSTEMD SERVICE #================================================= +ynh_script_progression --message="Configuring a systemd service..." --weight=1 -ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service" - +env_path="$PATH" ynh_add_systemd_config #================================================= # INSTALL HASTEBIN #================================================= +ynh_script_progression --message="Installing $app..." --weight=5 pushd "$final_path" ynh_use_nodejs @@ -111,7 +112,7 @@ popd #================================================= # CREATE DIRECTORY FOR DATA #================================================= -ynh_script_progression --message="Creating the data directory..." +ynh_script_progression --message="Creating the data directory..." --weight=1 # Define app's data directory data_path="/home/yunohost.app/${app}" diff --git a/scripts/remove b/scripts/remove index e567844..f79f779 100755 --- a/scripts/remove +++ b/scripts/remove @@ -69,15 +69,10 @@ ynh_remove_logrotate #================================================= # REMOVE HASTE BINARY #================================================= +ynh_script_progression --message="Removing various files..." --weight=1 ynh_secure_remove --file="/usr/bin/$app" -#================================================= -# REMOVE DATADIR DIRECTORY -#================================================= - -ynh_secure_remove --file="$data_path" - #================================================= # REMOVE DATA DIR #================================================= @@ -92,6 +87,7 @@ fi #================================================= # REMOVE NODEJS #================================================= +ynh_script_progression --message="Removing dependencies..." --weight=5 ynh_remove_nodejs