Skip to content
Browse files

Merge branch 'openblock-1.2-branch' of…

… into openblock-1.2-branch
  • Loading branch information...
2 parents cab4f82 + 84727f3 commit fc1d1eb7028fd926662c6ec89a76f24cc00c56be @slinkp slinkp committed
Showing with 6 additions and 3 deletions.
  1. +6 −3 misc/bin/ami_scripts/
9 misc/bin/ami_scripts/
@@ -29,13 +29,16 @@ $SSH $REMOTE <<EOF
sudo rsync -av /tmp/stuff/ /
# fix ownership we just clobbered
sudo mkdir -p /var/log/openblock
- sudo chown -R openblock /home/openblock /var/log/openblock
+ sudo chown -R openblock /var/log/openblock
+ sudo chown -R openblock.www-data /home/openblock/openblock
sudo chown root.root /etc/cron.d/openblock
sudo rm -f /home/openblock/openblock/wsgi
sudo ln -s /home/openblock/openblock/src/myblock/myblock/wsgi /home/openblock/openblock/wsgi
+ sudo -u openblock sed -i -e "s/DEBUG[ ]*=[ ]*True/DEBUG=False/" /home/openblock/openblock/src/myblock/myblock/
echo Restarting apache...
- sudo /etc/init.d/apache2 restart
+ sudo /etc/init.d/apache2 stop
+ sleep 2
+ sudo /etc/init.d/apache2 start
echo Restarting cron...
sudo service cron restart

0 comments on commit fc1d1eb

Please sign in to comment.
Something went wrong with that request. Please try again.