From abb8aba813110ed79588290fd4838ea5396ccc10 Mon Sep 17 00:00:00 2001 From: Valentin Date: Sun, 25 Feb 2024 01:01:13 +0100 Subject: [PATCH] directus tmux et caddy 18 --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index d18d7c8..63415e2 100644 --- a/install.sh +++ b/install.sh @@ -284,7 +284,7 @@ if [[ "$answer" == "y" ]]; then website_token=$(head -c 16 /dev/urandom | od -An -tx1 | tr -d ' \n') mariadb -u directus -p${db_directus_password} -e "UPDATE directus.directus_roles SET icon='robot' WHERE name='Website'"; mariadb -u directus -p${db_directus_password} -e "UPDATE directus.directus_roles SET app_access='0' WHERE name='Website'"; - mariadb -u directus -p${db_directus_password} -e "UPDATE directus.directus_users SET token='${website_token}' WHERE email='website'"; + mariadb -u directus -p${db_directus_password} -e "UPDATE directus.directus_users SET token=\"${website_token}\" WHERE email=\"website@${domain_name}\""; caddyfile="/etc/caddy/Caddyfile" echo "cms.${domain_name} {" >> $caddyfile