Skip to content

Commit 55a1bde

Browse files
author
Serghey Rodin
committed
Workaround for OpenVZ/Virtuozzo
1 parent bf699d7 commit 55a1bde

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

install/vst-install-ubuntu.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,11 @@ if [ "$named" = 'yes' ]; then
993993
update-rc.d bind9 defaults
994994
service bind9 start
995995
check_result $? "bind9 start failed"
996+
997+
# Workaround for OpenVZ/Virtuozzo
998+
if [ -e "/proc/vz/veinfo" ]; then
999+
sed -i "s/exit 0/service bind9 restart\nexit 0/" /etc/rc.local
1000+
fi
9961001
fi
9971002

9981003
#----------------------------------------------------------#

0 commit comments

Comments
 (0)