diff --git a/scripts/install b/scripts/install index ba24a72..58f9225 100644 --- a/scripts/install +++ b/scripts/install @@ -35,7 +35,7 @@ chown -R $app:www-data "$install_dir" #================================================= # BUILD APP #================================================= -ynh_script_progression --message="Building app..." --weight=2 +ynh_script_progression --message="Building $app..." --weight=2 pushd $install_dir python3 -m venv $install_dir/venv @@ -64,7 +64,7 @@ ynh_add_nginx_config # Create a dedicated systemd config ynh_add_systemd_config -yunohost service add $app --description="$app monitor, to automatically rebuild your website" +yunohost service add $app --description="Static Site Generator" --log="/var/log/$app/$app.log" #================================================= # GENERIC FINALIZATION diff --git a/scripts/restore b/scripts/restore index 1b78b0a..b05509b 100644 --- a/scripts/restore +++ b/scripts/restore @@ -21,12 +21,12 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_restore_file --origin_path="/etc/systemd/system/$app.service" systemctl enable $app.service --quiet -yunohost service add $app --description="$app monitor, to automatically rebuild your website" +yunohost service add $app --description="Static Site Generator" --log="/var/log/$app/$app.log" #================================================= # RESTORE THE APP MAIN DIR #================================================= -ynh_script_progression --message="Restoring the app main directory..." +ynh_script_progression --message="Restoring the app main directory..." --weight=1 ynh_restore_file --origin_path="$install_dir" @@ -38,7 +38,7 @@ chown -R $app:www-data "$install_dir" #================================================= # RELOAD SERVICES #================================================= -ynh_script_progression --message="Reloading services.." +ynh_script_progression --message="Reloading services.." --weight=1 ynh_systemd_action --service_name=nginx --action=reload ynh_systemd_action --service_name=$app --action="start" diff --git a/scripts/upgrade b/scripts/upgrade index 94a8501..8153aed 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -83,7 +83,7 @@ ynh_add_nginx_config # Create a dedicated systemd config ynh_add_systemd_config -yunohost service add $app --description="$app monitor, to automatically rebuild your website" +yunohost service add $app --description="Static Site Generator" --log="/var/log/$app/$app.log" #================================================= # GENERIC FINALIZATION