From c649e0eee41a92e7134ffe661866128d5f3c5cd0 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 6 May 2014 19:00:57 +0200 Subject: [PATCH] avoid error if avahi is not installed --- vm/firstboot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm/firstboot.sh b/vm/firstboot.sh index 5a7c9a57..5958239f 100755 --- a/vm/firstboot.sh +++ b/vm/firstboot.sh @@ -134,7 +134,7 @@ sed -i -e "s#gzip_disable \"msie6\";#${GZIP}#g" /etc/nginx/nginx.conf service nginx restart if [ "$LXC" == "yes" ]; then - sed -i "s/-D/--no-rlimits -D/g" /etc/init/avahi-daemon.conf + test -e /etc/init/avahi-daemon.conf && sed -i "s/-D/--no-rlimits -D/g" /etc/init/avahi-daemon.conf fi if [ "$LXC" == "no" ]; then