Skip to content

Instantly share code, notes, and snippets.

@thepeopleseason
Last active August 29, 2015 13:57
Show Gist options
  • Save thepeopleseason/9457078 to your computer and use it in GitHub Desktop.
Save thepeopleseason/9457078 to your computer and use it in GitHub Desktop.
HabitRPG vagrant Provisioning
#!/usr/bin/env bash
update_config=$'Please update config.json with your values\nfor ADMIN_EMAIL, SMT
P_USER, SMTP_PASS and SMTP_SERVICE.'
cd /vagrant
# check if config.json exists, then check if the defaults are still in place
if [ -e config.json ];
then
if grep -Fq 'ADMIN_EMAIL": "you@yours.com' config.json;
then
echo "$update_config";
exit;
else
npm start &
fi
else
cp config.json.example config.json;
echo "$update_config";
exit;
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment