1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/borg_ynh.git synced 2024-09-03 18:16:05 +02:00

Merge pull request #112 from YunoHost-Apps/testing

[fix] Error 500 on failed backup in config panel
This commit is contained in:
ljf (zamentur) 2021-12-01 13:23:35 +01:00 committed by GitHub
commit b7938cb03c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -6,7 +6,7 @@
"en": "Backup your server on a host server using Borg.", "en": "Backup your server on a host server using Borg.",
"fr": "Sauvegardez votre serveur sur un serveur distant avec Borg." "fr": "Sauvegardez votre serveur sur un serveur distant avec Borg."
}, },
"version": "1.1.16~ynh26", "version": "1.1.16~ynh27",
"url": "https://borgbackup.readthedocs.io", "url": "https://borgbackup.readthedocs.io",
"license": "BSD-3-Clause", "license": "BSD-3-Clause",
"maintainer": { "maintainer": {

View file

@ -16,6 +16,7 @@ ask:
**Last run**: ${old[last_run]}" **Last run**: ${old[last_run]}"
EOF EOF
if [ "${old[state]}" == "failed" ]; then if [ "${old[state]}" == "failed" ]; then
cat << EOF
style: "danger" style: "danger"
EOF EOF
elif [ "${old[state]}" == "successful" ]; then elif [ "${old[state]}" == "successful" ]; then