Fix apt install curl, add error message

This commit is contained in:
selfhoster1312 2024-05-06 17:05:47 +02:00
parent 60d3905678
commit 863896884f

View file

@ -273,7 +273,7 @@ function check_assertions()
# Assert curl is setup
if ! command -v curl 2>&1 >/dev/null; then
apt_get_wrapper --yes install curl
apt_install curl || { error "Yunohost installer requires curl to be installed, but it failed to install it."; return 1; }
fi
# Check PATH var