linux-mint/mint-config-update.sh

19 lines
415 B
Bash
Raw Normal View History

2022-07-22 11:05:23 +02:00
#!/bin/bash
2023-07-18 15:09:21 +02:00
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
2023-07-18 13:57:09 +02:00
# download and run
wget -q https://gitea.ds9.dedyn.io/olli/linux-mint/raw/branch/main/mint.sh -O /tmp/mint.sh || exit 0
2022-07-22 09:59:24 +02:00
cd /tmp
2023-07-18 15:05:16 +02:00
bash -n mint.sh && bash -x mint.sh
2022-07-22 11:05:43 +02:00
rm mint.sh
2022-07-22 10:40:51 +02:00
echo "Skript beendet"
2023-07-18 15:09:57 +02:00
whoami | grep -q ^root$ && exit 0
2022-07-22 10:40:51 +02:00
read x