Skip to content

Instantly share code, notes, and snippets.

View InfernoZeus's full-sized avatar

Ben Fox-Moore InfernoZeus

View GitHub Profile
@InfernoZeus
InfernoZeus / a2createsite.sh
Created February 24, 2012 05:42 — forked from florentb/a2createsite.sh
bash script - apache, vhost, website
#!/bin/bash
VHOST_CONF=/etc/apache2/sites-available
ROOT_UID=0
# check if is root
if [ "$UID" -ne "$ROOT_UID" ]
then
echo You must be root to run this script..
exit $UID