mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-02-25 05:57:26 +00:00
os check
This commit is contained in:
@@ -24,6 +24,14 @@ BINARY_PATH="/usr/bin/nextcloud-exporter"
|
|||||||
CONFIG_PATH="/etc/nextcloud-exporter.env"
|
CONFIG_PATH="/etc/nextcloud-exporter.env"
|
||||||
SERVICE_PATH="/etc/systemd/system/nextcloud-exporter.service"
|
SERVICE_PATH="/etc/systemd/system/nextcloud-exporter.service"
|
||||||
|
|
||||||
|
# ==============================================================================
|
||||||
|
# OS DETECTION
|
||||||
|
# ==============================================================================
|
||||||
|
if ! grep -qE 'ID=debian|ID=ubuntu' /etc/os-release 2>/dev/null; then
|
||||||
|
echo -e "${CROSS} Unsupported OS detected. This script only supports Debian and Ubuntu."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# UNINSTALL
|
# UNINSTALL
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user