This commit is contained in:
1 parent
4e237f1737
commit
9fff5cef23
5 files changed
+103
-26
No files matched your search
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Start cron
|
||||
service cron start
|
||||
|
||||
# Update crontab with the specified refresh time
|
||||
hour=$(echo $REFRESH_TIME | cut -d':' -f1)
|
||||
minute=$(echo $REFRESH_TIME | cut -d':' -f2)
|
||||
echo "$minute $hour * * * /usr/local/bin/refresh.sh >> /var/log/cron.log 2>&1" > /etc/cron.d/refresh-cron
|
||||
chmod 0644 /etc/cron.d/refresh-cron
|
||||
|
||||
# Start PostgreSQL
|
||||
exec docker-entrypoint.sh postgres
|
||||
Reference in new issue
Block a user