mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 21:34:12 -07:00
Fix for missing NetworkManager on OpenVZ/Virutozzo
This commit is contained in:
parent
91b7144f02
commit
c2c8b0ed2b
1 changed files with 12 additions and 0 deletions
|
@ -852,6 +852,12 @@ if [ "$nginx" = 'yes' ]; then
|
|||
chkconfig nginx on
|
||||
service nginx start
|
||||
check_result $? "nginx start failed"
|
||||
|
||||
# Workaround for OpenVZ/Virtuozzo
|
||||
if [ "$release" -eq '7' ] && [ -e "/proc/vz/veinfo" ]; then
|
||||
echo "#Vesta: workraround for networkmanager" >> /etc/rc.local
|
||||
echo "sleep 3 && service nginx restart" >> /etc/rc.local
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
@ -884,6 +890,12 @@ if [ "$apache" = 'yes' ]; then
|
|||
chkconfig httpd on
|
||||
service httpd start
|
||||
check_result $? "httpd start failed"
|
||||
|
||||
# Workaround for OpenVZ/Virtuozzo
|
||||
if [ "$release" -eq '7' ] && [ -e "/proc/vz/veinfo" ]; then
|
||||
echo "#Vesta: workraround for networkmanager" >> /etc/rc.local
|
||||
echo "sleep 2 && service httpd restart" >> /etc/rc.local
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue