Skip to content

Commit

Permalink
add some junk
Browse files Browse the repository at this point in the history
  • Loading branch information
leto committed Apr 8, 2013
1 parent 99f3254 commit ce31190
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions bin/redo
@@ -0,0 +1,5 @@
#!/bin/sh

/etc/init.d/apache2 restart
/etc/init.d/varnish restart
/etc/init.d/nginx restart
10 changes: 10 additions & 0 deletions 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 changes: 1 addition & 1 deletion bin/update_sites
Expand Up @@ -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

0 comments on commit ce31190

Please sign in to comment.