diff options
author | Björn Mattsson <bjorn@sunet.se> | 2023-11-20 16:55:44 +0100 |
---|---|---|
committer | Björn Mattsson <bjorn@sunet.se> | 2023-11-20 16:55:44 +0100 |
commit | 9da24d6af909680f9a2856410cfde6bfabd9c53d (patch) | |
tree | f2b355d121c06af04ec0d62f3b09904d090cfa87 | |
parent | 6c5614eac44b2bb5f51f43d87c699d2d98b53a80 (diff) |
Only send reminders from Sharp datamd-2023-11-20-v04
-rwxr-xr-x | metadata/scripts/weekly-routines-metadata.sh | 6 |
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 |