From a5c24cfc49b4ea88dca87cedbef8f86a4b52576f Mon Sep 17 00:00:00 2001 From: Poulette Date: Thu, 26 Feb 2026 01:17:22 +0100 Subject: [PATCH] Keep authentication when switching storage modes Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- ct/surrealdb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/surrealdb.sh b/ct/surrealdb.sh index c1ba20fe..6c3de96d 100644 --- a/ct/surrealdb.sh +++ b/ct/surrealdb.sh @@ -61,7 +61,7 @@ function update_script() { ;; 2) msg_info "Switching to Memory Storage" - sed -i 's|^ExecStart=.*|ExecStart=/usr/local/bin/surreal start --bind 0.0.0.0:8000 memory|' /etc/systemd/system/surrealdb.service + sed -i 's|^ExecStart=.*|ExecStart=/usr/local/bin/surreal start --bind 0.0.0.0:8000 --user root --pass ${SURREALDB_PASS} memory|' /etc/systemd/system/surrealdb.service systemctl daemon-reload systemctl restart surrealdb msg_ok "Switched to Memory Storage"