Browse Source

add some junk

master
Jonathan "Duke" Leto 11 years ago
parent
commit
ce3119030a
  1. 5
      bin/redo
  2. 10
      bin/stack_restart
  3. 2
      bin/update_sites

5
bin/redo

@ -0,0 +1,5 @@
#!/bin/sh
/etc/init.d/apache2 restart
/etc/init.d/varnish restart
/etc/init.d/nginx restart

10
bin/stack_restart

@ -0,0 +1,10 @@
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "You must be a root user" 2>&1
exit 1
else
service nginx configtest && service nginx restart
service php5-fpm restart
# no varnish configtest! be careful
service varnish restart
fi

2
bin/update_sites

@ -5,6 +5,6 @@ DIR=/sites
for i in `ls /sites/`; do
# we don't care about STDOUT, but let STDERR escape (which will generate email if used in cron)
cd $DIR/$i/htdocs && git fetch --all --prune > /dev/null && git rebase origin/master > /dev/null
cd $DIR/$i/htdocs && git fetch --all > /dev/null && git checkout origin/master > /dev/null
done

Loading…
Cancel
Save