KasmVNC/builder/scripts/common.sh
2023-01-24 21:29:05 +13:00

16 lines
248 B
Bash

#!/bin/bash
detect_distro() {
if [ -f /etc/centos-release ]; then
DISTRO=centos
elif [ -f /etc/oracle-release ]; then
DISTRO=oracle
elif [ -f /usr/bin/zypper ]; then
DISTRO=opensuse
else
DISTRO=debian
fi
}
detect_distro