1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-11-22 07:10:09 +01:00

Update wgd.sh

This commit is contained in:
Donald Zou 2024-11-12 00:12:10 +08:00
parent fdff54e11e
commit 3ef4798e09

View File

@ -65,6 +65,8 @@ _determineOS(){
OS=$ID OS=$ID
elif [ -f /etc/redhat-release ]; then elif [ -f /etc/redhat-release ]; then
OS="redhat" OS="redhat"
elif [ "$(uname)" = "OpenBSD" ]; then
OS="openbsd"
else else
printf "[WGDashboard] %s Sorry, your OS is not supported. Currently the install script only support Debian-based, Red Hat-based OS. With experimental support for Alpine Linux.\n" "$heavy_crossmark" printf "[WGDashboard] %s Sorry, your OS is not supported. Currently the install script only support Debian-based, Red Hat-based OS. With experimental support for Alpine Linux.\n" "$heavy_crossmark"
printf "%s\n" "$helpMsg" printf "%s\n" "$helpMsg"
@ -491,6 +493,8 @@ else
else else
start_wgd_debug start_wgd_debug
fi fi
elif [ "$1" = "os" ]; then
_determineOS
else else
help help
fi fi