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

Fix version checking?

This commit is contained in:
orhtej2 2023-09-23 00:58:37 +02:00
parent 93e6f6059d
commit 2842f4b1a5

View file

@ -41,12 +41,12 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
if [ $(ynh_compare_current_package_version --comparison le --version 2.6.2~ynh4) ]; then
if [ $(ynh_compare_current_package_version --comparison le --version "2.6.2~ynh4") ]; then
ynh_script_progression --message="Removing old files..." --weight=2
rm -rf "$install_dir/{*,.*}"
fi
if [[ "$upgrade_type" == "UPGRADE_APP" || $(ynh_compare_current_package_version --comparison le --version 2.6.2~ynh4) ]]; then
if [[ "$upgrade_type" == "UPGRADE_APP" || $(ynh_compare_current_package_version --comparison le --version "2.6.2~ynh4") ]]; then
ynh_script_progression --message="Upgrading source files..." --weight=5
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir/build" --full_replace=1 #--keep=".env"