From 9da24d6af909680f9a2856410cfde6bfabd9c53d Mon Sep 17 00:00:00 2001 From: Björn Mattsson Date: Mon, 20 Nov 2023 16:55:44 +0100 Subject: Only send reminders from Sharp data --- metadata/scripts/weekly-routines-metadata.sh | 6 ++++-- 1 file 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 -- cgit v1.2.3