add --force during the upgrade test

This commit is contained in:
Kayou 2020-11-17 22:20:32 +01:00 committed by GitHub
parent 2d283066e5
commit a82a4fd079
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -962,7 +962,7 @@ CHECK_UPGRADE () {
ECHO_FORMAT "\nUpgrade...\n" "white" "bold" clog
# Upgrade the application in a LXC container
LXC_START "sudo PACKAGE_CHECK_EXEC=1 yunohost --debug app upgrade $ynh_app_id -f \"$package_dir\""
LXC_START "sudo PACKAGE_CHECK_EXEC=1 yunohost --debug app upgrade $ynh_app_id --file \"$package_dir\"" --force
# yunohost_result gets the return code of the upgrade
yunohost_result=$?