forked from DeepNotesApp/DeepNotes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.sh
More file actions
25 lines (19 loc) · 665 Bytes
/
Copy pathupdate.sh
File metadata and controls
25 lines (19 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
set -e
cd /opt/deepnotes
echo "[info] Pulling latest code..."
git pull origin dev
# Regenerate keydb.conf if missing (not versioned, generated at install)
if [ ! -f keydb.conf ]; then
KEYDB_PASS=$(grep KEYDB_PASSWORD .env | cut -d'"' -f2)
echo "requirepass ${KEYDB_PASS}" > keydb.conf
echo "[info] Regenerated keydb.conf"
fi
echo "[info] Pulling latest images..."
docker compose pull
echo "[info] Updating containers..."
docker compose up -d --remove-orphans
# Restart client to refresh DNS cache for upstream containers
docker compose restart client
echo "[info] Client restarted to refresh DNS"
echo "[ok] DeepNotes updated successfully."