Avoid to update source if not needed

This commit is contained in:
Josué Tille 2024-04-09 22:21:11 +02:00
parent f1fc562143
commit b0e95f93c2
No known key found for this signature in database
GPG Key ID: 5F259226AD51F2F5

View File

@ -53,8 +53,10 @@ if [ ~"$app" != "$data_dir" ]; then
usermod --home "$data_dir" "$app" usermod --home "$data_dir" "$app"
fi fi
# Ensure secrets are defined if [ "$upgrade_type" == UPGRADE_APP ]; then
ynh_setup_source --dest_dir="$install_dir" --source_id=main --full_replace=1 --keep=custom # Ensure secrets are defined
ynh_setup_source --dest_dir="$install_dir" --source_id=main --full_replace=1 --keep=custom
fi
#================================================= #=================================================
# MIGRATION STEP 2 (Set undefined Vars) # MIGRATION STEP 2 (Set undefined Vars)