From 9568c5de04352b592542773748330c3a3d2fb16a Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Wed, 18 Feb 2015 16:49:10 +0100 Subject: [PATCH] Add test app in run.sh to be able to exercise more of the webadmin --- run.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/run.sh b/run.sh index a73057378..00ce2c68a 100755 --- a/run.sh +++ b/run.sh @@ -53,6 +53,7 @@ $GNU_SED -e "s/^pid .*/pid \/tmp\/nginx.pid;/" -i "${NGINX_ROOT}/nginx.conf" readonly WEBADMIN_ID=abcdefg readonly WEBADMIN_SCOPES="root,profile,users,apps,settings,roleUser" sqlite3 "${DATA_DIR}/cloudron.sqlite" "INSERT OR REPLACE INTO clients (id, appId, clientSecret, redirectURI, scope) VALUES (\"cid-webadmin\", \"webadmin\", \"secret-webadmin\", \"https://${FQDN}\", \"${WEBADMIN_SCOPES}\")" +sqlite3 "${DATA_DIR}/cloudron.sqlite" "INSERT OR REPLACE INTO apps (id, appStoreId, version, installationState, installationProgress, runState, healthy, containerId, manifestJson, httpPort, location, dnsRecordId, accessRestriction) VALUES (\"testApp\", \"testAppAppstoreId\", \"1.2.3\", \"installed\", \"done\", \"running\", \"1\", \"testAppContainerId\", \"{}\", 1337, \"testAppLocation\", \"testAppDnsRecordId\", \"public\")" # start nginx sudo nginx -c nginx.conf -p "${NGINX_ROOT}"