1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/galette_ynh.git synced 2024-09-03 18:36:28 +02:00

Fix upgrade

This commit is contained in:
Jean-Baptiste Holcroft 2018-05-20 15:49:02 +02:00
parent 1876653225
commit 7104748a89
2 changed files with 10 additions and 2 deletions

View file

@ -2,3 +2,5 @@ SOURCE_URL=http://download.tuxfamily.org/galette/galette-0.9.tar.bz2
SOURCE_SUM=139a5143c0f0d777e69e18633e9b751d1e50b45b9be05320eac00fd2bb685645
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.bz2
SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=

View file

@ -83,10 +83,16 @@ path_url=$(ynh_normalize_url_path "$path_url")
#=================================================
# Download, check integrity, uncompress and patch the source from app.src
mv "$final_path" "$final_path.old"
ynh_setup_source "$final_path"
mv --force "$final_path"/galette/* "$final_path"/
mv "$final_path"/galette/* "$final_path"/
ynh_secure_remove "$final_path"/tests
chown -R root:root "$final_path"
cp "$final_path.old/config/config.inc.php" "$final_path/config/config.inc.php"
# delete temp directory
ynh_secure_remove "$final_path.old"
#=================================================
# NGINX CONFIGURATION