mirror of
https://github.com/YunoHost-Apps/dotclear2_ynh.git
synced 2024-09-03 18:26:29 +02:00
Update scripts/upgrade
This commit is contained in:
parent
1de99ebea9
commit
4840a385e3
1 changed files with 6 additions and 0 deletions
|
@ -102,6 +102,12 @@ ynh_system_user_create --username=$app --home_dir=$final_path
|
||||||
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
|
# In case of a new version, the url change from http://download.dotclear.org/latest/dotclear-X.X.X.tar.gz to http://download.dotclear.org/attic/dotclear-X.X.X.tar.gz
|
||||||
|
src_url=$(grep 'SOURCE_URL=' "../conf/app.src" | cut -d= -f2-)
|
||||||
|
if ! curl --output /dev/null --silent --head --fail "$src_url"; then
|
||||||
|
ynh_replace_string "latest" "attic" ../conf/app.src
|
||||||
|
fi
|
||||||
ynh_script_progression --message="Upgrading source files..."
|
ynh_script_progression --message="Upgrading source files..."
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
|
|
Loading…
Reference in a new issue