mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
as
sa
This commit is contained in:
1 parent
608856c4ec
commit
4409d830fc
1 file changed
+8
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user