annotate extra/soundsoftware/scripted-deploy/vagrant/provision.d/080-database-load.sh @ 1586:d0d59d12db94 dockerise

Add some cron scripts, update
author Chris Cannam
date Wed, 16 Aug 2017 16:58:22 +0100
parents ae8043b014c7
children
rev   line source
Chris@1577 1 #!/bin/bash
Chris@1577 2
Chris@1577 3 set -e
Chris@1577 4
Chris@1577 5 /etc/init.d/postgresql start
Chris@1577 6
Chris@1577 7 cd /var/www/code
Chris@1577 8
Chris@1577 9 if [ -f postgres-dumpall ]; then
Chris@1577 10 chmod ugo+r postgres-dumpall
Chris@1577 11 sudo -u postgres psql -f postgres-dumpall postgres
Chris@1577 12 rm postgres-dumpall # This was just a copy of the shared folder file anyway
Chris@1577 13 fi
Chris@1577 14
Chris@1577 15
Chris@1577 16