diff --git a/conf/app.src b/conf/app.src index 7744a52..07dfdf8 100644 --- a/conf/app.src +++ b/conf/app.src @@ -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 diff --git a/scripts/upgrade b/scripts/upgrade index a664a27..2282208 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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