You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2 pbkdf2_sha256$12000$AMAIZeSq7IBP$6F8fYzjn7z1BBuBBDJfAA84eTW+SNknv6aqiYdc8OyY=2014-01-2007:58:08.834168-07 t dev dev@dev.com t t 2014-01-2007:58:08.07811-07
18
+
1 pbkdf2_sha256$12000$18U86XLtKK5h$dV4rNDHjrkWUSPHtCdtwmSUa19OxPjOIKekvTuhs9HI=2014-01-2716:30:25.062197-07 t dev dev@dev.com t t 2014-01-2715:23:49.793007-07
19
+
\.
20
+
21
+
22
+
--
23
+
-- Data for Name: api_provider; Type: TABLE DATA; Schema: public; Owner: deis
# And then edit the resulting SQL to remove the default anonymous user
9
+
10
+
if [[ $EUID-ne 0 ]];then
11
+
echo"This script must be run as root"1>&2
12
+
exit 1
13
+
fi
14
+
15
+
if [[ -z"$VP_HOST"&&-z"$VP_USER" ]];then
16
+
echo"VP_HOST and VP_USER must be set"
17
+
exit 1
18
+
fi
19
+
20
+
echo"Dropping and recreating Deis database..."
21
+
su postgres -c 'dropdb deis && createdb --encoding=utf8 --template=template0 deis'
22
+
echo"Running South migrations..."
23
+
su deis -c '/opt/deis/controller/venv/bin/python /opt/deis/controller/manage.py syncdb --migrate --noinput'
24
+
echo"Updating the Django site object..."
25
+
su deis -c "psql deis -c \"UPDATE django_site SET domain = 'deis-controller.local', name = 'deis-controller.local' WHERE id = 1 \""
26
+
echo"Importing fixtures for formation and super user..."
27
+
su deis -c 'psql deis < /opt/deis/controller/api/fixtures/deis_dev.sql'
28
+
echo"Updating vagrant provider details"
29
+
su deis -c "psql deis -c \"UPDATE api_provider SET creds = '{\\\"host\\\": \\\"$VP_HOST\\\", \\\"user\\\": \\\"$VP_USER\\\"}' WHERE owner_id = 1 AND type = 'vagrant' \""
0 commit comments