File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,16 +10,14 @@ conf_dir=/etc/graphite-statsd/conf
1010graphite_dir_contents=$( find /opt/graphite -mindepth 1 -print -quit)
1111graphite_conf_dir_contents=$( find /opt/graphite/conf -mindepth 1 -print -quit)
1212graphite_webapp_dir_contents=$( find /opt/graphite/webapp/graphite -mindepth 1 -print -quit)
13- graphite_storage_dir_contents=$( find /opt/graphite/storage -mindepth 1 -print -quit)
13+ graphite_storage_dir_contents=$( find /opt/graphite/storage -mindepth 1 -print -quit | grep -v lost+found )
1414graphite_log_dir_contents=$( find /var/log/graphite -mindepth 1 -print -quit)
1515graphite_custom_dir_contents=$( find /opt/graphite/webapp/graphite/functions/custom -mindepth 1 -print -quit)
1616if [[ -z $graphite_log_dir_contents ]]; then
1717 mkdir -p /var/log/graphite
18- chown graphite:graphite /var/log/graphite
1918 touch /var/log/syslog
2019fi
2120if [[ -z $graphite_dir_contents ]]; then
22- # git clone -b 1.0.2 --depth 1 https://github.com/graphite-project/graphite-web.git /usr/local/src/graphite-web
2321 cd /usr/local/src/graphite-web && python ./setup.py install
2422fi
2523if [[ -z $graphite_conf_dir_contents ]]; then
@@ -29,6 +27,7 @@ if [[ -z $graphite_webapp_dir_contents ]]; then
2927 cp $conf_dir /opt/graphite/webapp/graphite/local_settings.py /opt/graphite/webapp/graphite/local_settings.py
3028fi
3129if [[ -z $graphite_storage_dir_contents ]]; then
30+ mkdir -p /opt/graphite/storage/whisper
3231 /usr/local/bin/django_admin_init.exp
3332fi
3433if [[ -z $graphite_custom_dir_contents ]]; then
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ sv start nginx || exit 1
34export PYTHONPATH=/opt/graphite/webapp && exec /usr/local/bin/gunicorn wsgi --workers=4 --bind=0.0.0.0:8080 --log-file=/var/log/gunicorn.log --preload --pythonpath=/opt/graphite/webapp/graphite
You can’t perform that action at this time.
0 commit comments