Preserve the built-in clients on db clean
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user