Merge pull request #143 from YunoHost/Tagadda-patch-1

Don't remove the app when install fails
This commit is contained in:
Alexandre Aubin 2023-09-26 17:59:39 +02:00 committed by GitHub
commit bea9c77046
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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