mirror of
https://github.com/YunoHost-Apps/hubzilla_ynh.git
synced 2024-09-03 19:26:21 +02:00
Updated to 2.4.2 and edited upgrade script to retain user data while upgrade
This commit is contained in:
parent
8c328b09be
commit
b53fa2f477
8 changed files with 13 additions and 8 deletions
|
@ -132,4 +132,3 @@ sudo service php5-fpm reload || true
|
||||||
sudo service nginx reload || true
|
sudo service nginx reload || true
|
||||||
|
|
||||||
sudo yunohost app ssowatconf
|
sudo yunohost app ssowatconf
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,11 @@ run_exec=$(ynh_app_setting_get $app run_exec)
|
||||||
|
|
||||||
CHECK_PATH # Vérifie et corrige la syntaxe du path.
|
CHECK_PATH # Vérifie et corrige la syntaxe du path.
|
||||||
|
|
||||||
|
# Make backup of old app folder and create again the app folder
|
||||||
|
sudo mv ${final_path} ${final_path}.old
|
||||||
|
sudo mkdir -p $final_path
|
||||||
|
|
||||||
|
|
||||||
# We download the sources and check the md5sum
|
# We download the sources and check the md5sum
|
||||||
# 1 - hubzilla
|
# 1 - hubzilla
|
||||||
hubzilla_file=`sudo cat ../sources/hubzilla/source_file`;
|
hubzilla_file=`sudo cat ../sources/hubzilla/source_file`;
|
||||||
|
@ -28,6 +33,8 @@ sudo wget -nv -i ../sources/hubzilla/source_url -O ${hubzilla_file}.zip
|
||||||
sudo md5sum -c ../sources/hubzilla/source_md5 --status || (echo "Corrupt source" >&2 && false)
|
sudo md5sum -c ../sources/hubzilla/source_md5 --status || (echo "Corrupt source" >&2 && false)
|
||||||
sudo unzip -q ${hubzilla_file}.zip -d ../sources/hubzilla/
|
sudo unzip -q ${hubzilla_file}.zip -d ../sources/hubzilla/
|
||||||
sudo cp -r ../sources/hubzilla/${hubzilla_file}/. $final_path
|
sudo cp -r ../sources/hubzilla/${hubzilla_file}/. $final_path
|
||||||
|
sudo cp -a ${final_path}.old/store ${final_path}
|
||||||
|
sudo rm -Rf ${final_path}.old
|
||||||
|
|
||||||
# 2 - Addons
|
# 2 - Addons
|
||||||
addons_file=`sudo cat ../sources/hubzilla-addons/source_file`;
|
addons_file=`sudo cat ../sources/hubzilla-addons/source_file`;
|
||||||
|
@ -95,4 +102,3 @@ fi
|
||||||
sudo service php5-fpm reload || true
|
sudo service php5-fpm reload || true
|
||||||
sudo service nginx reload || true
|
sudo service nginx reload || true
|
||||||
sudo yunohost app ssowatconf
|
sudo yunohost app ssowatconf
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
hubzilla-addons-2.4
|
hubzilla-addons-2.4.1
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
4a6a825f614af3b49cf1833d8e91009f hubzilla-addons-2.4.zip
|
aff46da933e40b125c21946ec48220c5 hubzilla-addons-2.4.1.zip
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
https://github.com/redmatrix/hubzilla-addons/archive/2.4.zip
|
https://github.com/redmatrix/hubzilla-addons/archive/2.4.1.zip
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
hubzilla-2.4
|
hubzilla-2.4.1
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
a584fd89716eaeda8a879fb288e409e2 hubzilla-2.4.zip
|
8c824159e5464d9d5cf312a41e50327c hubzilla-2.4.1.zip
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
https://github.com/redmatrix/hubzilla/archive/2.4.zip
|
https://github.com/redmatrix/hubzilla/archive/2.4.1.zip
|
||||||
|
|
Loading…
Add table
Reference in a new issue