dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
prj-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed too long password for mysql. Fixed no enable-drupal target. Fixed no email...
[prj-utils.git]
/
prj-site-make
diff --git
a/prj-site-make
b/prj-site-make
index d346be7b3291fc27c104ea528b3c86b7fa67cd64..f1009016ebb338abfd9e32a188f0400b8978bd82 100755
(executable)
--- a/
prj-site-make
+++ b/
prj-site-make
@@
-1,7
+1,4
@@
-#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}
apache_sites = '/etc/apache2/sites-available'
project_dir = `pwd`/${name}
host = ${name}
@@
-128,6
+125,8
@@
create-drupal: create-directories
cd ${project_dir}/www && drush en seven toolbar shortcut -y
cd ${project_dir}/www && drush vset admin_theme seven
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';"
purge-drupal:
echo "> Removing SQL user"
sudo mysql --defaults-file=/etc/mysql/debian.cnf -e "DROP USER '${sql_user}'@'localhost';"