summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Mattsson <bjorn@sunet.se>2023-11-20 16:55:44 +0100
committerBjörn Mattsson <bjorn@sunet.se>2023-11-20 16:55:44 +0100
commit9da24d6af909680f9a2856410cfde6bfabd9c53d (patch)
treef2b355d121c06af04ec0d62f3b09904d090cfa87
parent6c5614eac44b2bb5f51f43d87c699d2d98b53a80 (diff)
Only send reminders from Sharp datamd-2023-11-20-v04
-rwxr-xr-xmetadata/scripts/weekly-routines-metadata.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/metadata/scripts/weekly-routines-metadata.sh b/metadata/scripts/weekly-routines-metadata.sh
index f4ede03e..0b57467f 100755
--- a/metadata/scripts/weekly-routines-metadata.sh
+++ b/metadata/scripts/weekly-routines-metadata.sh
@@ -4,8 +4,10 @@
# Store statistics
#docker exec swamid-metadata-sp php /var/www/scripts/saveWeekStats.php
-# Send out reminders
-docker exec swamid-metadata-sp php /var/www/scripts/sendMailReminders.php
+if [ `hostname -f` == 'metadata.swamid.se' ] ;then
+ # Send out reminders only from metadata.swamid.se
+ docker exec swamid-metadata-sp php /var/www/scripts/sendMailReminders.php
+fi
#Remove old URLs
docker exec swamid-metadata-sp php /var/www/scripts/checkOldURLs.php