/etc/issue does not exist on all systems

Signed-off-by: Gregory L. Dietsche <Gregory.Dietsche@cuw.edu>
This commit is contained in:
Gregory L. Dietsche 2016-05-10 01:40:44 +00:00
parent a6d5b525b2
commit 62cf9c93a8

View file

@ -154,7 +154,7 @@ Bootstrap() {
ExperimentalBootstrap "FreeBSD" BootstrapFreeBsd
elif uname | grep -iq Darwin ; then
ExperimentalBootstrap "Mac OS X" BootstrapMac
elif grep -iq "Amazon Linux" /etc/issue ; then
elif [ -f /etc/issue ] && grep -iq "Amazon Linux" /etc/issue ; then
ExperimentalBootstrap "Amazon Linux" BootstrapRpmCommon
else
echo "Sorry, I don't know how to bootstrap Certbot on your operating system!"