blob: 9d83cfbb7931fc6b9bd43df1f5552d5c21ffa9d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/usr/bin/env bash
if [ ! -r /var/lib/graphite/graphite.db ]; then
# graphite-manage migrate
django-admin migrate --settings=graphite.settings
# graphite-manage createsuperuser --noinput --username=admin --email root@localhost.localdomain
django-admin createsuperuser --settings=graphite.settings --noinput --username=admin --email root@localhost.localdomain
fi
chown -R _graphite:_graphite /var/lib/graphite/
service apache2 start
service carbon-cache start
while true; do sleep 10; done
|