site-del 187 B

1234567
  1. #!/bin/bash
  2. if [[ "$1" != "" ]] && [[ "$2" != "" ]]; then
  3. rm -f $(dirname $BASH_SOURCE)/../etc/sites.d/$1@$2;
  4. echo "Site $1@$2 removed";
  5. else
  6. echo "Usage: $0 <username> <hostname>"
  7. fi;