Add debian up

This commit is contained in:
2025-06-01 02:28:01 +02:00
parent cba1318073
commit 6789b09191
5 changed files with 218 additions and 0 deletions

20
debian-up.sh Normal file
View 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