Preserve the built-in clients on db clean

This commit is contained in:
Johannes Zellner
2016-06-08 14:47:21 +02:00
parent 08c3cb9376
commit 6b9acb4722
2 changed files with 2 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ openssl req -x509 -newkey rsa:2048 -keyout data/nginx/cert/host.key -out data/ng
webadmin_scopes="cloudron,profile,users,apps,settings"
webadmin_origin="https://${ADMIN_LOCATION}-localhost"
# !!!!!! check clientdb.js clear() to not nuke those entries
echo "Add webadmin api client"
mysql --user=root --password="" \
-e "REPLACE INTO clients (id, appId, type, clientSecret, redirectURI, scope) VALUES (\"cid-webadmin\", \"Settings\", \"external\", \"secret-webadmin\", \"${webadmin_origin}\", \"${webadmin_scopes}\")" boxtest