HOME is not consistent if dokku is ran e.g. as root (for setup). The DOKKU_ROOT variable will also make it possible to have the repositories stored in an arbitrary location (works-ish right now)
20 lines
435 B
Bash
Executable File
20 lines
435 B
Bash
Executable File
#!/bin/bash
|
|
|
|
sed -i 's/docker -d$/docker -d -r=true/' /etc/init/docker.conf
|
|
|
|
echo $HOSTNAME > $DOKKU_ROOT/HOSTNAME
|
|
|
|
|
|
# temporary hack for https://github.com/progrium/dokku/issues/82
|
|
# redeploys all apps after a reboot
|
|
cat<<EOF > /etc/init/dokku-redeploy.conf
|
|
description "Dokku app redeploy service"
|
|
|
|
start on (started docker)
|
|
|
|
script
|
|
sleep 2 # give docker some time
|
|
sudo -i -u dokku /usr/local/bin/dokku deploy:all
|
|
end script
|
|
EOF
|