diff options
Diffstat (limited to 'metadata/scripts')
-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 |