diff options
-rw-r--r-- | share/templater/drupal-composer/files/Makefile.drupal-composer | 16 |
1 files changed, 13 insertions, 3 deletions
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 |