From 6eb48ae196c55f3591e30d6a6dcc02bfbfc25a4c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 29 Jul 2020 09:17:04 -0300 Subject: Drupal: composer: Makefile: updates settings and adds dumpfiles --- .../drupal-composer/files/Makefile.drupal-composer | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'share') diff --git a/share/templater/drupal-composer/files/Makefile.drupal-composer b/share/templater/drupal-composer/files/Makefile.drupal-composer index 451f481..3ebbceb 100644 --- a/share/templater/drupal-composer/files/Makefile.drupal-composer +++ b/share/templater/drupal-composer/files/Makefile.drupal-composer @@ -53,11 +53,16 @@ composer: # Drupal settings settings: - test -s $(SITES_FOLDER)/sites.php || cp $(SITES_FOLDER)/example.sites.php $(SITES_FOLDER)/sites.php - test -s $(SITE_FOLDER)/settings.php || cp $(SITE_FOLDER)/../example.settings.php $(SITE_FOLDER)/settings.php - test -s $(SITE_FOLDER)/settings.local.php || cp $(SITE_FOLDER)/../example.settings.local.php $(SITE_FOLDER)/settings.local.php + test -s $(SITES_FOLDER)/sites.php || cp $(SITES_FOLDER)/example.sites.php $(SITES_FOLDER)/sites.php + test -s $(SITE_FOLDER)/settings.php || cp $(SITE_FOLDER)/default.settings.php $(SITE_FOLDER)/settings.php + test -s $(SITE_FOLDER)/services.yml || cp $(SITE_FOLDER)/default.services.yml $(SITE_FOLDER)/services.yml + #test -s $(SITE_FOLDER)/settings.local.php || cp $(SITES_FOLDER)/example.settings.local.php $(SITE_FOLDER)/settings.local.php + #test -s $(SITE_FOLDER)/settings.local.php || cp $(SITE_FOLDER)/settings.custom.php $(SITE_FOLDER)/settings.local.php + test -s $(SITE_FOLDER)/settings.local.php || touch $(SITE_FOLDER)/settings.local.php chmod 640 $(SITE_FOLDER)/settings.local.php + chmod 640 $(SITE_FOLDER)/settings.php chmod 640 $(SITE_FOLDER)/services.yml + chmod 640 $(SITES_FOLDER)/sites.php # Permissions perms: @@ -78,6 +83,11 @@ deploy: perms reset submodules $(DRUSH) cache-rebuild $(DRUSH) config-import -y +# Dump files +dumpfiles: + #cp -alf web/sites/default/files backups/$(DATE) + tar jcvf backups/$(DATE).tar.bz2 web/sites/default/files + # Load pristine db from the initial upstream developer initdb_pristine: settings test -s sql/dumps/pristinet.sql.gz && gzip -dc sql/dumps/pristinet.sql.gz | $(DRUSH) sql-cli || true -- cgit v1.2.3