You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
866 B
37 lines
866 B
|
7 years ago
|
#!/bin/bash
|
||
|
|
PATH="/usr/local/jdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/pkg/bin:/usr/pkg/sbin"
|
||
|
|
export PATH
|
||
|
|
|
||
|
|
exec > /tmp/daily_maint.log
|
||
|
|
exec 2>&1
|
||
|
|
|
||
|
|
mkdir /tmp/dragas; cp /dragas/note.html /tmp/dragas/
|
||
|
|
|
||
|
|
|
||
|
|
echo "Waiting for network to settle (3 minutes)..."
|
||
|
|
sleep 30s;
|
||
|
|
echo "2.30 minutes left..."
|
||
|
|
sleep 30s;
|
||
|
|
echo "2 minutes left..."
|
||
|
|
sleep 30s;
|
||
|
|
echo "1.30 minute left..."
|
||
|
|
sleep 30s;
|
||
|
|
echo "1 minute left..."
|
||
|
|
sleep 30s;
|
||
|
|
echo "30 seconds left..."
|
||
|
|
sleep 30s;
|
||
|
|
echo "Proceeding..."
|
||
|
|
|
||
|
|
cd /usr/local/bibliosangio
|
||
|
|
git pull
|
||
|
|
|
||
|
|
cp /dragas/note.html /tmp/dragas/
|
||
|
|
|
||
|
|
docker pull biblioregistry.dragashosting.com/timeleft
|
||
|
|
docker pull biblioregistry.dragashosting.com/bibliochromium
|
||
|
|
docker pull biblioregistry.dragashosting.com/bibliomate
|
||
|
|
|
||
|
|
docker image prune -f
|
||
|
|
|
||
|
|
echo "Done!"
|