Skip to content

Instantly share code, notes, and snippets.

@pierew
Created May 4, 2015 16:04
Show Gist options
  • Save pierew/e5a1c4f6ba9db0f6f806 to your computer and use it in GitHub Desktop.
Save pierew/e5a1c4f6ba9db0f6f806 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [ -z "$1" ]; then
echo "No Domain specified"
echo "Usage: uber-add-domain <domain.tld>"
else
uberspace-add-domain -w -d $1
echo "CREATE Webserver Folder @ /var/www/virtual/$USER/$1"
mkdir /var/www/virtual/$USER/$1
echo "[OK]"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment