19 lines
412 B
Bash
19 lines
412 B
Bash
#!/bin/bash
|
|
|
|
if whoami | grep -q ^root$
|
|
then
|
|
# lockfile for systemd-service
|
|
trap "rm -f /run/mint-config-update.sh.lock" EXIT
|
|
echo $$ >/run/mint-config-update.sh.lock
|
|
fi
|
|
|
|
# download and run
|
|
wget -q https://gitea.ds9.dedyn.io/olli/linux-mint/raw/branch/main/mint.sh -O /tmp/mint.sh || exit 0
|
|
cd /tmp
|
|
bash -n mint.sh && bash mint.sh
|
|
rm mint.sh
|
|
|
|
echo "Skript beendet"
|
|
whoami | grep -q ^root$ && exit 0
|
|
read x
|