From ab2721bc375bb2a0b06794351529650a23a3b92c Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 7 Dec 2015 11:52:14 -0500 Subject: [PATCH] Guard against invalid key file during installation [ci skip] --- debian/postinst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ;;