diff --git a/debian/postinst b/debian/postinst index 35c3361e3..a02143d49 100755 --- a/debian/postinst +++ b/debian/postinst @@ -71,7 +71,9 @@ case "$1" in if [ -z "${DEBCONF_RECONFIGURE}" ]; then db_get "dokku/key_file" - sshcommand acl-add dokku default < "$RET" + if [ -f "$RET" ]; then + sshcommand acl-add dokku default < "$RET" + fi fi ;;