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