File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1377,7 +1377,7 @@ if [ "$named" = 'yes' ]; then
13771377 check_result $? " bind9 start failed"
13781378
13791379 # Workaround for OpenVZ/Virtuozzo
1380- if [ -e " /proc/vz/veinfo" ]; then
1380+ if [ -e " /proc/vz/veinfo" ] && [ -e " /etc/rc.local " ] ; then
13811381 sed -i " s/^exit 0/service bind9 restart\nexit 0/" /etc/rc.local
13821382 fi
13831383fi
Original file line number Diff line number Diff line change @@ -1354,7 +1354,7 @@ if [ "$named" = 'yes' ]; then
13541354 check_result $? " bind9 start failed"
13551355
13561356 # Workaround for OpenVZ/Virtuozzo
1357- if [ -e " /proc/vz/veinfo" ]; then
1357+ if [ -e " /proc/vz/veinfo" ] && [ -e " /etc/rc.local " ] ; then
13581358 sed -i " s/^exit 0/service bind9 restart\nexit 0/" /etc/rc.local
13591359 fi
13601360fi
You can’t perform that action at this time.
0 commit comments