blob: 66c998286540ba786038cb7c8f785ae6e4cea3c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/bash
# Used on metadata.swamid.se and metadata.lab.swamid.se
# Store statistics
#docker exec swamid-metadata-sp php /var/www/scripts/saveWeekStats.php
if [ `/usr/bin/hostname -f` == 'metadata.swamid.se' ] ;then
# Send out reminders only from metadata.swamid.se
echo
echo "Sending reminders"
docker exec swamid-metadata-sp php /var/www/scripts/sendMailReminders.php
fi
# Clean up database
echo
echo "Remove old entities"
docker exec swamid-metadata-sp php /var/www/scripts/cleanupDatabase.php
#Remove old URLs
echo
echo "Checking URL:s"
docker exec swamid-metadata-sp php /var/www/scripts/checkOldURLs.php
|