1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ulogger_ynh.git synced 2024-10-01 13:34:45 +02:00

Updated to version 0.4,changed the upgrade script so that update could be posible

This commit is contained in:
anmol26s 2017-10-25 21:14:34 +05:30
parent 03ecdc092a
commit 24115e7845
2 changed files with 12 additions and 2 deletions

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/bfabiszewski/ulogger-server/archive/v0.3.zip
SOURCE_SUM=38a74d10df638dc6df6b1dd269bd64c9a0131375f656c4fb3cf89270256039c3
SOURCE_URL=https://github.com/bfabiszewski/ulogger-server/archive/v0.4.zip
SOURCE_SUM=d5821e1334cb3ce306e484b6398965b29b98d809dcda0998fb82bad14c74d008
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=zip
SOURCE_IN_SUBDIR=true

View file

@ -40,6 +40,8 @@ if [ -z $db_name ]; then
db_name=$(ynh_sanitize_dbid $app)
ynh_app_setting_set $app db_name $db_name
fi
#move the final_path to final_path.old
sudo mv ${final_path} ${final_path}.old
# If final_path doesn't exist, create it
if [ -z $final_path ]; then
@ -75,6 +77,14 @@ path_url=$(ynh_normalize_url_path $path_url)
# Download, check integrity, uncompress and patch the source from app.src
#ynh_setup_source "$final_path"
ynh_setup_source "$final_path"
#copy cofig.php from final_path.old to final_path
sudo cp -a ${final_path}.old/config.php ${final_path}
#remove final_path.old
sudo rm -Rf ${final_path}.old
#=================================================
# NGINX CONFIGURATION