Compare commits

...

2 Commits

Author SHA1 Message Date
ea1489341f Fix: Geht in das Git-Verzeichnis 2025-03-04 08:20:19 +01:00
a70f7dc167 Fix: Passt Versuche/Zeiten an 2025-03-04 08:17:45 +01:00
2 changed files with 10 additions and 7 deletions

View File

@ -14,6 +14,7 @@ fi
# === Variablen === # === Variablen ===
WHOAMI=$(whoami) WHOAMI=$(whoami)
USER=${SUDO_USER:-$WHOAMI} USER=${SUDO_USER:-$WHOAMI}
DIR=$(pwd)
# === Skript-Funktionen === # === Skript-Funktionen ===
cleanup() { cleanup() {
@ -50,7 +51,9 @@ trap cleanup SIGINT
wait_for_internet_connection wait_for_internet_connection
sudo -u $USER git pull |& while IFS= read -r line; do log "$line"; done cd "$(dirname "$0")"
sudo -u "$USER" git pull |& while IFS= read -r line; do log "$line"; done
cd "$DIR"
update_packages update_packages
update_flatpak update_flatpak

View File

@ -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=2 # Max. Anzahl der WOL-Versuche WOL_RETRIES=5 # Max. Anzahl der WOL-Versuche
WOL_WAIT=30 # Wartezeit nach WOL (Sekunden) WOL_WAIT=60 # Wartezeit nach WOL (Sekunden)
# === FUNKTIONEN === # === FUNKTIONEN ===