Don't remove the app when install fails

This commit is contained in:
Tagada 2023-09-26 16:14:14 +02:00 committed by GitHub
parent 06107167bf
commit 22dacd70fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -127,8 +127,8 @@ _INSTALL_APP () {
done
# Install the application in a LXC container
log_info "Running: yunohost app install --force /app_folder -a \"$install_args\""
_RUN_YUNOHOST_CMD "app install --force /app_folder -a \"$install_args\""
log_info "Running: yunohost app install --no-remove-on-failure --force /app_folder -a \"$install_args\""
_RUN_YUNOHOST_CMD "app install --no-remove-on-failure --force /app_folder -a \"$install_args\""
local ret=$?
[ $ret -eq 0 ] && log_debug "Installation successful." || log_error "Installation failed."