This commit is contained in:
2026-09-23 21:49:06 +02:00
parent 15d77eeaca
commit 496920cbdd
29 changed files with 399 additions and 493 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
retry() {
local N=$1; shift
local t=$2; shift
for _ in $(seq 1 $N); do
"$@" && return 0 || sleep $t
done
return 1
}
stow_nextcloud() {
# Nextcloud
if [ ! -d "$HOME/nextcloud/local_configs" ]; then
echo "Fehler: Benötige $HOME/nextcloud/local_configs" >&2
exit 1
fi
stow --dir=$HOME/nextcloud/local_configs --target=$HOME default
}
nextcloud &
retry 90 10 stow_nextcloud