fix(docker): only download feature flags when not a worker
ref: #688 fixes #687
This commit is contained in:
@ -59,22 +59,40 @@ if [ "$1" == "" ]; then
|
||||
fi;
|
||||
|
||||
|
||||
echo '[info] Creating nginx service config';
|
||||
|
||||
cp /etc/supervisor/conf.source/cron.conf /etc/supervisor/conf.d/cron.conf;
|
||||
|
||||
if [ -f '/etc/supervisor/conf.d/cron.conf' ]; then
|
||||
|
||||
|
||||
chmod 744 -R /etc/crontabs;
|
||||
|
||||
chown 0:0 -R /etc/crontabs;
|
||||
|
||||
|
||||
echo '[info] CronD service config Created';
|
||||
|
||||
else
|
||||
|
||||
echo '[crit] CronD service config not created';
|
||||
|
||||
fi;
|
||||
|
||||
|
||||
echo "[info] Fetching available feature flags";
|
||||
|
||||
export init_dir=${PWD}
|
||||
|
||||
cd /app;
|
||||
|
||||
python manage.py feature_flag;
|
||||
|
||||
fi;
|
||||
|
||||
chmod 744 -R /etc/crontabs;
|
||||
|
||||
chown 0:0 -R /etc/crontabs;
|
||||
|
||||
echo "[info] SupervisorD Setup successfully"
|
||||
|
||||
echo "[info] Fetching available feature flags";
|
||||
|
||||
export init_dir=${PWD}
|
||||
|
||||
cd /app;
|
||||
|
||||
python manage.py feature_flag;
|
||||
|
||||
echo "[info] Starting SupervisorCTL";
|
||||
|
||||
/usr/local/bin/supervisord;
|
||||
|
Reference in New Issue
Block a user