mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update INSTALL.sh
This commit is contained in:
parent
f9dcdd3233
commit
d0afb3445e
@ -5,7 +5,7 @@
|
||||
# Usage: cd /home && (curl -sSL https://get.openpanel.co || wget -O - https://get.openpanel.co) | bash
|
||||
# Author: Stefan Pejcic
|
||||
# Created: 11.07.2023
|
||||
# Last Modified: 24.06.2024
|
||||
# Last Modified: 28.06.2024
|
||||
# Company: openpanel.co
|
||||
# Copyright (c) OPENPANEL
|
||||
#
|
||||
@ -134,6 +134,17 @@ debug_log() {
|
||||
fi
|
||||
}
|
||||
|
||||
# Check if a package is already installed
|
||||
is_package_installed() {
|
||||
if [ "$DEBUG" = false ]; then
|
||||
$PACKAGE_MANAGER -qq list "$1" 2>/dev/null | grep -qE "^ii"
|
||||
else
|
||||
$PACKAGE_MANAGER -qq list "$1" | grep -qE "^ii"
|
||||
echo "Updating package manager.."
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
|
||||
# Get server ipv4 from ip.openpanel.co
|
||||
current_ip=$(curl -s https://ip.openpanel.co || wget -qO- https://ip.openpanel.co)
|
||||
|
Loading…
Reference in New Issue
Block a user