From 0891a7e512ede7b7177bda831891d2e3a8fa2465 Mon Sep 17 00:00:00 2001 From: Björn Mattsson Date: Wed, 22 Nov 2023 09:22:05 +0100 Subject: Added full path to hostname --- metadata/scripts/weekly-routines-metadata.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata/scripts/weekly-routines-metadata.sh b/metadata/scripts/weekly-routines-metadata.sh index 0b57467f..2b2a56bc 100755 --- a/metadata/scripts/weekly-routines-metadata.sh +++ b/metadata/scripts/weekly-routines-metadata.sh @@ -4,7 +4,7 @@ # Store statistics #docker exec swamid-metadata-sp php /var/www/scripts/saveWeekStats.php -if [ `hostname -f` == 'metadata.swamid.se' ] ;then +if [ `/usr/bin/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 -- cgit v1.2.3