#!/bin/bash

service nginx stop;
docker start cyberft_v2.1;
docker exec -i cyberft_v2.1 /var/www/cyberft/www/stop-daemons.sh;
docker exec -i cyberft_v2.1 /var/www/cyberft/www/stop-daemons.sh;
docker exec -i cyberft_v2.1 /var/www/cyberft/www/./yii resque/purge;
docker exec -i cyberft_v2.1 /var/www/cyberft/www/start-daemons.sh;
docker exec -i cyberft_v2.1 /var/www/cyberft/www/start-daemons.sh;
docker exec -i cyberft_v2.1 service stunnel4 restart;

echo 'fixed' >> /root/cyberftfix.log
