Add ubuntu-up 20.04 to 22.04
This commit is contained in:
18
ubuntu-up.sh
Normal file
18
ubuntu-up.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
declare BASE_URL=https://git.netm.ch/m/os-init/raw/branch/main
|
||||
declare UBUNTUVER=0
|
||||
|
||||
getVer() {
|
||||
UBUNTUVER=$(grep "VERSION_ID=" /etc/os-release | sed 's/"//g' | sed 's/.*=//')
|
||||
}
|
||||
|
||||
run() {
|
||||
apt update -y
|
||||
apt install -y wget
|
||||
wget -P /tmp ${BASE_URL}/ubuntu-${UBUNTUVER}/ubuntu-up.sh
|
||||
bash /tmp/ubuntu-up
|
||||
}
|
||||
|
||||
getVer
|
||||
run
|
||||
Reference in New Issue
Block a user