From 907d4892ab45e4e1f6e88ca2bf07d5b52b6bade7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Rivera?= Date: Thu, 23 Jul 2026 22:34:32 +0200 Subject: [PATCH] wait for kdrive and fix yml --- README.md | 3 ++- bootstrap.sh | 11 ++++++++++- compose.yml | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dc269b6..ad90ec0 100644 --- a/README.md +++ b/README.md @@ -31,9 +31,10 @@ After creation: read IP_ADDRESS scp bootstrap.sh root@$IP_ADDRESS: ssh root@$IP_ADDRESS -./bootstrap.sh ``` +Then run `./bootstrap.sh` + # 2. Deploy ``` ./scripts/deploy.sh diff --git a/bootstrap.sh b/bootstrap.sh index 051430c..295be48 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -160,7 +160,16 @@ cp systemd/kdrive-rclone.service \ systemctl daemon-reload systemctl enable --now kdrive-rclone -mountpoint /mnt/kdrive +sleep 1 +echo "Mounting kdrive" +sleep 1 +echo "." +sleep 1 +echo ".." +sleep 1 +echo "..." + +mountpoint /mnt/kdrive || {echo "kDrive is still not mounted. Waiting..." && sleep 5 && mountpoint /mnt/kdrive } # if it fails we wait another 5 sec before retrying ls /mnt/kdrive ################################################################################ diff --git a/compose.yml b/compose.yml index 3432869..a70cd52 100644 --- a/compose.yml +++ b/compose.yml @@ -1,7 +1,7 @@ services: caddy: - depends-on: + depends_on: - archivebox image: caddy:latest container_name: caddy