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:
parent
1876653225
commit
7104748a89
2 changed files with 10 additions and 2 deletions
|
@ -2,3 +2,5 @@ SOURCE_URL=http://download.tuxfamily.org/galette/galette-0.9.tar.bz2
|
||||||
SOURCE_SUM=139a5143c0f0d777e69e18633e9b751d1e50b45b9be05320eac00fd2bb685645
|
SOURCE_SUM=139a5143c0f0d777e69e18633e9b751d1e50b45b9be05320eac00fd2bb685645
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=tar.bz2
|
SOURCE_FORMAT=tar.bz2
|
||||||
|
SOURCE_IN_SUBDIR=true
|
||||||
|
SOURCE_FILENAME=
|
||||||
|
|
|
@ -83,10 +83,16 @@ path_url=$(ynh_normalize_url_path "$path_url")
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
|
mv "$final_path" "$final_path.old"
|
||||||
|
|
||||||
ynh_setup_source "$final_path"
|
ynh_setup_source "$final_path"
|
||||||
mv --force "$final_path"/galette/* "$final_path"/
|
mv "$final_path"/galette/* "$final_path"/
|
||||||
ynh_secure_remove "$final_path"/tests
|
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
|
# NGINX CONFIGURATION
|
||||||
|
|
Loading…
Add table
Reference in a new issue