mirror of
https://github.com/YunoHost-Apps/garradin_ynh.git
synced 2024-09-03 18:36:17 +02:00
Merge branch '1.1' of github.com:YunoHost-Apps/garradin_ynh into 1.1
This commit is contained in:
commit
524bd0f451
4 changed files with 8 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
# Garradin for YunoHost
|
# Garradin for YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/garradin)  
|
[](https://dash.yunohost.org/appci/app/garradin)  
|
||||||
[](https://install-app.yunohost.org/?app=garradin)
|
[](https://install-app.yunohost.org/?app=garradin)
|
||||||
|
|
||||||
*[Lire ce readme en français.](./README_fr.md)*
|
*[Lire ce readme en français.](./README_fr.md)*
|
||||||
|
|
|
@ -4,3 +4,4 @@ SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=tar.bz2
|
SOURCE_FORMAT=tar.bz2
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
SOURCE_FILENAME=
|
SOURCE_FILENAME=
|
||||||
|
|
||||||
|
|
|
@ -12,4 +12,5 @@
|
||||||
- [ ] Can be reviewed and tested.
|
- [ ] Can be reviewed and tested.
|
||||||
|
|
||||||
## Package_check results
|
## Package_check results
|
||||||
* An automatic package_check will be launch at https://ci-apps-dev.yunohost.org/, when you add a specific comment to your Pull Request: "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!"*
|
* An automatic package_check will be launch at https://ci-apps-dev.yunohost.org/, when you add a specific comment to your Pull Request: "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!"*
|
||||||
|
|
||||||
|
|
|
@ -73,8 +73,8 @@ ynh_script_progression --message="Backing up Garradin before upgrading (may take
|
||||||
# Backup the current version of the app
|
# Backup the current version of the app
|
||||||
ynh_backup_before_upgrade
|
ynh_backup_before_upgrade
|
||||||
ynh_clean_setup () {
|
ynh_clean_setup () {
|
||||||
# restore it if the upgrade fails
|
# restore it if the upgrade fails
|
||||||
ynh_restore_upgradebackup
|
ynh_restore_upgradebackup
|
||||||
}
|
}
|
||||||
# Exit if an error occurs during the execution of the script
|
# Exit if an error occurs during the execution of the script
|
||||||
ynh_abort_if_errors
|
ynh_abort_if_errors
|
||||||
|
@ -180,7 +180,7 @@ ynh_script_progression --message="restore data..." --weight=10
|
||||||
backup_bdd=/tmp/association.sqlite
|
backup_bdd=/tmp/association.sqlite
|
||||||
backup_squelettes=/tmp/squelettes
|
backup_squelettes=/tmp/squelettes
|
||||||
|
|
||||||
if [ -d "$backup_squelettes" ]
|
if [ -d "$backup_squelettes" ]
|
||||||
then
|
then
|
||||||
cp -ar $backup_squelettes $final_path/www/squelettes
|
cp -ar $backup_squelettes $final_path/www/squelettes
|
||||||
ynh_secure_remove $backup_squelettes
|
ynh_secure_remove $backup_squelettes
|
||||||
|
@ -188,7 +188,7 @@ fi
|
||||||
|
|
||||||
if [ -e "$backup_bdd" ]
|
if [ -e "$backup_bdd" ]
|
||||||
then
|
then
|
||||||
cp -a $backup_bdd $final_path/association.sqlite
|
cp -a $backup_bdd $final_path/association.sqlite
|
||||||
ynh_secure_remove $backup_bdd
|
ynh_secure_remove $backup_bdd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue