mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
parent
002ff5939c
commit
2e2f4717cd
2
lib.sh
2
lib.sh
@ -1061,7 +1061,7 @@ fi
|
||||
|
||||
# Check if program is installed (stop_if_installed apache2)
|
||||
stop_if_installed() {
|
||||
if [ "$(dpkg-query -W -f='${Status}' "${1}" 2>/dev/null | grep -c "ok installed")" == "1" ]
|
||||
if [ "$(dpkg-query -W -f='${Status}' "${1}" 2>/dev/null | grep -c "ok installed")" = "1" ]
|
||||
then
|
||||
print_text_in_color "$IRed" "${1} is installed, it must be a clean server."
|
||||
exit 1
|
||||
|
||||
@ -20,7 +20,7 @@ then
|
||||
fi
|
||||
|
||||
# Install curl if not existing
|
||||
if [ "$(dpkg-query -W -f='${Status}' "curl" 2>/dev/null | grep -c "ok installed")" == "1" ]
|
||||
if [ "$(dpkg-query -W -f='${Status}' "curl" 2>/dev/null | grep -c "ok installed")" = "1" ]
|
||||
then
|
||||
echo "curl OK"
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user