mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-11-25 12:31:35 +01:00
Add last progession log
This commit is contained in:
parent
6947543587
commit
4882f6ad63
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user