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