Add new make targets to build and install dokku debian packages

This commit is contained in:
Jose Diaz-Gonzalez
2015-01-11 18:38:51 -05:00
parent 8c8745ca4c
commit b6767f8efc
6 changed files with 229 additions and 0 deletions

24
debian/postinst vendored Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/sh
set -e
case "$1" in
abort-upgrade|abort-remove|abort-deconfigure)
;;
configure)
mandb
[ ! -x /usr/bin/docker.io ] || ln -sf /usr/bin/docker.io /usr/local/bin/docker
modprobe aufs || echo "WARNING: Restart server to finish installing dokku!"
sshcommand create dokku /usr/local/bin/dokku
egrep -i "^docker" /etc/group || groupadd docker
usermod -aG docker dokku
dokku plugins-install
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
exit 0