mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
daemon autostart while apt-get install
This commit is contained in:
parent
c8adfe025c
commit
4b15491482
2 changed files with 22 additions and 2 deletions
|
@ -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 #
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue