Add last progession log

This commit is contained in:
Josué Tille 2019-10-27 14:54:35 +01:00
parent 6947543587
commit 4882f6ad63
No known key found for this signature in database
GPG Key ID: 716A6C99B04194EF
6 changed files with 11 additions and 1 deletions

View File

@ -43,3 +43,5 @@ ynh_backup --src_path "/var/log/$app"
# Dump the database # Dump the database
ynh_script_progression --message="Backing up database" ynh_script_progression --message="Backing up database"
ynh_mysql_dump_db "$dbname" > ./db.sql ynh_mysql_dump_db "$dbname" > ./db.sql
ynh_script_progression --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." --last

View File

@ -61,3 +61,5 @@ sleep 1
# Store the checksum with the 'INTERNAL_TOKEN' value. # Store the checksum with the 'INTERNAL_TOKEN' value.
# Should be removed when the issue https://github.com/go-gitea/gitea/issues/3246 is fixed # Should be removed when the issue https://github.com/go-gitea/gitea/issues/3246 is fixed
ynh_store_file_checksum --file "$final_path/custom/conf/app.ini" ynh_store_file_checksum --file "$final_path/custom/conf/app.ini"
ynh_script_progression --message="Change of URL completed for $app" --last

View File

@ -132,3 +132,5 @@ sleep 1
# Store the checksum with the 'INTERNAL_TOKEN' value. # Store the checksum with the 'INTERNAL_TOKEN' value.
# Should be removed when the issue https://github.com/go-gitea/gitea/issues/3246 is fixed # Should be removed when the issue https://github.com/go-gitea/gitea/issues/3246 is fixed
ynh_store_file_checksum --file "$final_path/custom/conf/app.ini" ynh_store_file_checksum --file "$final_path/custom/conf/app.ini"
ynh_script_progression --message="Installation of $app completed" --last

View File

@ -60,4 +60,4 @@ yunohost service remove "$app"
ynh_script_progression --message="Removing fail2ban configuration..." ynh_script_progression --message="Removing fail2ban configuration..."
ynh_remove_fail2ban_config ynh_remove_fail2ban_config
true # Do not fail if remove after install error ynh_script_progression --message="Removal of $app completed" --last

View File

@ -80,3 +80,5 @@ ynh_script_progression --message="Reloading services..."
systemctl reload nginx.service systemctl reload nginx.service
ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "/var/log/$app/gitea.log" -t 10 ynh_systemd_action -l "Serving \[::\]:$port with pid" -p "/var/log/$app/gitea.log" -t 10
sleep 1 sleep 1
ynh_script_progression --message="Restoration completed for $app" --last

View File

@ -220,3 +220,5 @@ you don't see Gogs as installed." >&2
chmod +x /tmp/$script_post_migration chmod +x /tmp/$script_post_migration
(cd /tmp; echo "/tmp/$script_post_migration > /tmp/$script_post_migration.log 2>&1" | at now + 2 minutes) (cd /tmp; echo "/tmp/$script_post_migration > /tmp/$script_post_migration.log 2>&1" | at now + 2 minutes)
fi fi
ynh_script_progression --message="Upgrade of $app completed" --last