mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
Workaround for OpenVZ/Virtuozzo
This commit is contained in:
parent
bf699d7140
commit
55a1bdefcb
1 changed files with 5 additions and 0 deletions
|
@ -993,6 +993,11 @@ if [ "$named" = 'yes' ]; then
|
|||
update-rc.d bind9 defaults
|
||||
service bind9 start
|
||||
check_result $? "bind9 start failed"
|
||||
|
||||
# Workaround for OpenVZ/Virtuozzo
|
||||
if [ -e "/proc/vz/veinfo" ]; then
|
||||
sed -i "s/exit 0/service bind9 restart\nexit 0/" /etc/rc.local
|
||||
fi
|
||||
fi
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue