From 4b15491482fabff94ba9b91334fd913b616b27d1 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Mon, 14 Oct 2013 22:34:36 +0300 Subject: [PATCH] daemon autostart while apt-get install --- install/vst-install-debian.sh | 12 +++++++++++- install/vst-install-ubuntu.sh | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/install/vst-install-debian.sh b/install/vst-install-debian.sh index 70485ec2..292a9559 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 085d640d..c613a75a 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 #