diff --git a/.gitignore b/.gitignore index e61534a..04a4b60 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ composer.phar .fonts/ +bin/composer diff --git a/bin/composer b/bin/composer deleted file mode 100755 index 929aaea..0000000 Binary files a/bin/composer and /dev/null differ diff --git a/bin/server.sh b/bin/server.sh new file mode 100755 index 0000000..88ac74c --- /dev/null +++ b/bin/server.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# +# This script allows me to quickly start or stop apache2 and mysql. +# +# Usage: ./server.sh [start|stop] + +if [ "$1" == "start" ]; then + sudo service apache2 start + sudo service mysql start +elif [ "$1" == "stop" ]; then + sudo service apache2 stop + sudo service mysql stop +else + echo "'$1' is an unknown option" + exit 0 +fi