op="$1"
name="$2"
type="$3"
+sql_user=`expr substr rdlugoleck_$name 1 16`
+sql_password=`pwgen -1 -s 50`
-make name=$name type=$type -s -f ~/prj/prj-utils/prj-site-make $op
+make name=$name type=$type sql_user=$sql_user sql_password=$sql_password -s -f ~/prj/prj-utils/prj-site-make $op
-#email="dlugolecki.rafal@gmail.com"
-sql_user = rdlugoleck_${name}
-# this allows me to evaluate pwgen result to value
-$(eval sql_password := $(shell pwgen -1 -s 50))
+email="example@example.com"
apache_sites = '/etc/apache2/sites-available'
project_dir = `pwd`/${name}
host = ${name}
cd ${project_dir}/www && drush en seven toolbar shortcut -y
cd ${project_dir}/www && drush vset admin_theme seven
+enable-drupal:
+
purge-drupal:
echo "> Removing SQL user"
sudo mysql --defaults-file=/etc/mysql/debian.cnf -e "DROP USER '${sql_user}'@'localhost';"