Pony.fm/vagrant/copy-and-restart-configs.sh

22 lines
688 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2015-12-20 19:30:51 +01:00
echo "Updating config files and restarting services..."
echo
2015-04-12 03:22:15 +02:00
mkdir -p /vagrant/storage/app/datastore
2015-04-12 03:22:15 +02:00
sudo cp /vagrant/vagrant/pony.fm.nginx.config /etc/nginx/nginx.conf &
sudo cp /vagrant/vagrant/pony.fm.nginx.site.config /etc/nginx/sites-enabled/pony.fm &
sudo cp /vagrant/vagrant/php-overrides.ini /etc/php/7.0/fpm/99-overrides.ini &
sudo cp /vagrant/vagrant/pony.fm.redis.config /etc/redis/redis.conf &
sudo cp /vagrant/vagrant/pony.fm.supervisor.config /etc/supervisor/conf.d/pony.fm.conf &
wait
2015-04-12 03:22:15 +02:00
sudo service supervisor start
sudo supervisorctl update &
sudo service elasticsearch restart &
sudo service nginx restart &
sudo service php7.0-fpm restart &
wait