16 lines
438 B
Bash
Executable File
16 lines
438 B
Bash
Executable File
#!/bin/bash
|
|
|
|
isInFile=$(cat /etc/os-release | grep -c "ID=debian")
|
|
if [ $isInFile -eq 1 ]; then
|
|
curl -O http://192.168.1.50/debian/debian-essentials.sh
|
|
chmod +x debian-essentials.sh
|
|
sudo ./debian-essentials.sh
|
|
fi
|
|
|
|
isInFile=$(cat /etc/os-release | grep -c "ID=ubuntu")
|
|
if [ $isInFile -eq 1 ]; then
|
|
curl -O http://192.168.1.50/ubuntu/ubuntu-essentials.sh
|
|
chmod +x ubuntu-essentials.sh
|
|
sudo ./ubuntu-essentials.sh
|
|
fi
|