sa
This commit is contained in:
WickedYoda committed 2024-03-31 15:43:01 -05:00
1 parent 608856c4ec
commit 4409d830fc
1 file changed
+8 -2
+8 -2
View File
@@ -3,10 +3,16 @@
cd /home/traver
# Check distro and download updated public-setupfiles
if [ -f "/etc/debian_version" ]; then
if [ -x "$(command -v lsb_release)" ]; then
distro=$(lsb_release -si)
else
distro=$(cat /etc/os-release | grep -oP '(?<=^ID=).+' | tr -d '"')
fi
if [ "$distro" = "Ubuntu" ]; then
# Pull file A
wget https://raw.githubusercontent.com/wickedyoda/public-setupfiles/main/server_config/ubuntu/ubuntu-setup.sh
elif [ -f "/etc/lsb-release" ]; then
elif [ "$distro" = "Debian" ]; then
# Pull file B
wget https://raw.githubusercontent.com/wickedyoda/public-setupfiles/main/server_config/debian/debian-setup.sh
fi