From db049b65118ed43ce5c54e3dd6014ad16a05e3b0 Mon Sep 17 00:00:00 2001 From: David Sainty Date: Tue, 18 Jun 2024 11:47:54 +0000 Subject: [PATCH] Import scripts now cloned from git rather than copied from the persistent directory structure --- import.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/import.yml b/import.yml index 5689ce0..12979e0 100644 --- a/import.yml +++ b/import.yml @@ -1,4 +1,4 @@ -## saint v0.3 +## saint v0.4 ## this is the all-in-one, standalone Discourse Docker container template ## ## After making changes to this file, you MUST rebuild @@ -108,11 +108,12 @@ hooks: - gem install sqlite3 after_bundle_exec: - exec: - cd: /var/www/discourse + cd: /var/www/discourse/script/import_scripts cmd: - apt-get install -y vim - - cp /shared/slowtwitch/import_scripts/goss*.rb /var/www/discourse/script/import_scripts/ - - chown -R discourse:discourse /var/www/discourse/script/import_scripts/goss*.rb + - git clone https://gitea.federated.computer/saint/discourse-import_scripts.git + - chown -R discourse:discourse discourse-import_scripts/*.rb + #- cp -a /shared/slowtwitch/import_scripts/goss*.rb /var/www/discourse/script/import_scripts/ #- mkdir /var/www/discourse/plugins/md5_authentication #- cp -a /shared/slowtwitch/md5_authentication/plugin.rb /var/www/discourse/plugins/plugin.rb