fix: handle case where modprobe does not exist

This is possible when installing dokku within a docker image.
This commit is contained in:
Jose Diaz-Gonzalez
2019-05-13 02:59:41 -04:00
parent b0b036549a
commit 6b42fde028

4
debian/postinst vendored
View File

@@ -33,7 +33,9 @@ case "$1" in
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!"
if [[ -f /sbin/modprobe ]]; then
modprobe aufs || echo "WARNING: Restart server to finish installing dokku!"
fi
call-sshcommand create dokku /usr/bin/dokku
egrep -i "^docker" /etc/group || groupadd docker