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