diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2020-07-29 09:17:04 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2020-07-29 09:17:04 -0300 |
commit | 6eb48ae196c55f3591e30d6a6dcc02bfbfc25a4c (patch) | |
tree | 546dd8de42c545c351e392eb7d1482e61c36cc1c /share | |
parent | c940551f2a33c548eb9d551c010d55ae01788ae7 (diff) | |
download | templater-6eb48ae196c55f3591e30d6a6dcc02bfbfc25a4c.tar.gz templater-6eb48ae196c55f3591e30d6a6dcc02bfbfc25a4c.tar.bz2 |
Drupal: composer: Makefile: updates settings and adds dumpfiles
Diffstat (limited to 'share')
-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 |