1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/noalyss_ynh.git synced 2024-09-03 19:46:20 +02:00
This commit is contained in:
dudjima 2018-04-14 11:59:54 +02:00 committed by GitHub
parent fa2e9fdf57
commit a083d36445
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,32 +0,0 @@
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================
ynh_backup_before_upgrade
ynh_clean_setup () {
ynh_restore_upgradebackup
}
ynh_abort_if_errors
#save database qnd config before replace all files
sudo -i -u postgres
pg_dumpall > noalyss_backup.dmp
sudo cp -a noalyss/include/config.inc.php etc/tmp/
#=================================================
# RELOAD NGINX
#=================================================
systemctl reload nginx