os check
This commit is contained in:
parent
a7d97b15e7
commit
9ee22f9af9
@ -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
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user