summaryrefslogtreecommitdiff
path: root/metadata/scripts/weekly-routines-metadata.sh
diff options
context:
space:
mode:
Diffstat (limited to 'metadata/scripts/weekly-routines-metadata.sh')
-rwxr-xr-xmetadata/scripts/weekly-routines-metadata.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/metadata/scripts/weekly-routines-metadata.sh b/metadata/scripts/weekly-routines-metadata.sh
index 2b2a56bc..c7f6dafd 100755
--- a/metadata/scripts/weekly-routines-metadata.sh
+++ b/metadata/scripts/weekly-routines-metadata.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Used on metadata.swamid.se and metadata.lab.swamid.se
# Store statistics
@@ -9,5 +9,8 @@ if [ `/usr/bin/hostname -f` == 'metadata.swamid.se' ] ;then
docker exec swamid-metadata-sp php /var/www/scripts/sendMailReminders.php
fi
+# Clean up database
+docker exec swamid-metadata-sp php /var/www/scripts/cleanupDatabase.php
+
#Remove old URLs
docker exec swamid-metadata-sp php /var/www/scripts/checkOldURLs.php