This removes the need for two distinct users. Git pushes and dokku commands are sent using the same user.
20 lines
429 B
Bash
Executable File
20 lines
429 B
Bash
Executable File
#!/bin/bash
|
|
|
|
sed -i 's/docker -d$/docker -d -r=true/' /etc/init/docker.conf
|
|
|
|
echo $HOSTNAME > $HOME/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
|