Skip to content

Instantly share code, notes, and snippets.

View gbeezus's full-sized avatar

Olu Adeyanju gbeezus

View GitHub Profile
#!/bin/bash
TERMINUS=/$HOME/vendor/bin/terminus
for i in "$@"
do
case $i in
-s=*|--site=*)
SITE="${i#*=}"
shift # --site=SiteName
@gbeezus
gbeezus / install_drupal.sh
Created April 22, 2019 16:55
Drupal Installation Shell Script
#!/bin/bash
drush=/usr/local/bin/drush
#check if drush exists before running rest of script
type $drush >/dev/null 2>&1 || { echo >&2 "I require drush but it's not installed. Aborting."; exit 1; }
#define default variables
profile_d=standard
acctname_d=Admin