Compare commits
No commits in common. "ea1489341f7feb9533b64a03ddde64e3b0e4f41d" and "65448fd8f4deee2ec5c8cd1dccfb46a4ba94e1b8" have entirely different histories.
ea1489341f
...
65448fd8f4
@ -14,7 +14,6 @@ fi
|
|||||||
# === Variablen ===
|
# === Variablen ===
|
||||||
WHOAMI=$(whoami)
|
WHOAMI=$(whoami)
|
||||||
USER=${SUDO_USER:-$WHOAMI}
|
USER=${SUDO_USER:-$WHOAMI}
|
||||||
DIR=$(pwd)
|
|
||||||
|
|
||||||
# === Skript-Funktionen ===
|
# === Skript-Funktionen ===
|
||||||
cleanup() {
|
cleanup() {
|
||||||
@ -51,9 +50,7 @@ trap cleanup SIGINT
|
|||||||
|
|
||||||
wait_for_internet_connection
|
wait_for_internet_connection
|
||||||
|
|
||||||
cd "$(dirname "$0")"
|
sudo -u $USER git pull |& while IFS= read -r line; do log "$line"; done
|
||||||
sudo -u "$USER" git pull |& while IFS= read -r line; do log "$line"; done
|
|
||||||
cd "$DIR"
|
|
||||||
|
|
||||||
update_packages
|
update_packages
|
||||||
update_flatpak
|
update_flatpak
|
||||||
|
|||||||
@ -7,8 +7,8 @@ source "$SCRIPT_DIR/Log.sh"
|
|||||||
|
|
||||||
# === KONFIGURATION ===
|
# === KONFIGURATION ===
|
||||||
PING_RETRIES=5 # Anzahl der PING-Versuche vor WOL
|
PING_RETRIES=5 # Anzahl der PING-Versuche vor WOL
|
||||||
WOL_RETRIES=5 # Max. Anzahl der WOL-Versuche
|
WOL_RETRIES=2 # Max. Anzahl der WOL-Versuche
|
||||||
WOL_WAIT=60 # Wartezeit nach WOL (Sekunden)
|
WOL_WAIT=30 # Wartezeit nach WOL (Sekunden)
|
||||||
|
|
||||||
# === FUNKTIONEN ===
|
# === FUNKTIONEN ===
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user