diff --git a/install/vst-install-debian.sh b/install/vst-install-debian.sh index 70485ec25..292a95599 100644 --- a/install/vst-install-debian.sh +++ b/install/vst-install-debian.sh @@ -373,14 +373,24 @@ if [ "$srv_type" = 'small' ]; then software=$(echo "$software" | sed -e 's/spamassassin//') fi -# Install Vesta packages +# Update system packages apt-get update + +# Disable daemon autostart +# For more details /usr/share/doc/sysv-rc/README.policy-rc.d.gz +echo -e '#!/bin/sh \nexit 101' > /usr/sbin/policy-rc.d +chmod a+x /usr/sbin/policy-rc.d + +# Install Vesta packages apt-get -y install $software if [ $? -ne 0 ]; then echo 'Error: apt-get install failed' exit 1 fi +# Restore policy +rm -f /usr/sbin/policy-rc.d + #----------------------------------------------------------# # Configure system # diff --git a/install/vst-install-ubuntu.sh b/install/vst-install-ubuntu.sh index 085d640da..c613a75a4 100644 --- a/install/vst-install-ubuntu.sh +++ b/install/vst-install-ubuntu.sh @@ -375,14 +375,24 @@ if [ "$srv_type" = 'small' ]; then software=$(echo "$software" | sed -e 's/spamassassin//') fi -# Install Vesta packages +# Update system packages apt-get update + +# Disable daemon autostart +# For more details /usr/share/doc/sysv-rc/README.policy-rc.d.gz +echo -e '#!/bin/sh \nexit 101' > /usr/sbin/policy-rc.d +chmod a+x /usr/sbin/policy-rc.d + +# Install Vesta packages apt-get -y install $software if [ $? -ne 0 ]; then echo 'Error: apt-get install failed' exit 1 fi +# Restore policy +rm -f /usr/sbin/policy-rc.d + #----------------------------------------------------------# # Configure system #