mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
Can't put a function above the lib import duuh
This commit is contained in:
parent
1d75d98ee2
commit
71de61fd18
@ -6,7 +6,12 @@
|
||||
sed -i "s|#precedence ::ffff:0:0/96 100|precedence ::ffff:0:0/96 100|g" /etc/gai.conf
|
||||
|
||||
# Install curl if not existing
|
||||
install_if_not curl
|
||||
if [ "$(dpkg-query -W -f='${Status}' "curl" 2>/dev/null | grep -c "ok installed")" == "1" ]
|
||||
then
|
||||
echo "curl OK"
|
||||
else
|
||||
apt update && apt install curl -y
|
||||
fi
|
||||
|
||||
# shellcheck disable=2034,2059
|
||||
true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user