File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed
Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -373,14 +373,24 @@ if [ "$srv_type" = 'small' ]; then
373373 software=$( echo " $software " | sed -e ' s/spamassassin//' )
374374fi
375375
376- # Install Vesta packages
376+ # Update system packages
377377apt-get update
378+
379+ # Disable daemon autostart
380+ # For more details /usr/share/doc/sysv-rc/README.policy-rc.d.gz
381+ echo -e ' #!/bin/sh \nexit 101' > /usr/sbin/policy-rc.d
382+ chmod a+x /usr/sbin/policy-rc.d
383+
384+ # Install Vesta packages
378385apt-get -y install $software
379386if [ $? -ne 0 ]; then
380387 echo ' Error: apt-get install failed'
381388 exit 1
382389fi
383390
391+ # Restore policy
392+ rm -f /usr/sbin/policy-rc.d
393+
384394
385395# ----------------------------------------------------------#
386396# Configure system #
Original file line number Diff line number Diff line change @@ -375,14 +375,24 @@ if [ "$srv_type" = 'small' ]; then
375375 software=$( echo " $software " | sed -e ' s/spamassassin//' )
376376fi
377377
378- # Install Vesta packages
378+ # Update system packages
379379apt-get update
380+
381+ # Disable daemon autostart
382+ # For more details /usr/share/doc/sysv-rc/README.policy-rc.d.gz
383+ echo -e ' #!/bin/sh \nexit 101' > /usr/sbin/policy-rc.d
384+ chmod a+x /usr/sbin/policy-rc.d
385+
386+ # Install Vesta packages
380387apt-get -y install $software
381388if [ $? -ne 0 ]; then
382389 echo ' Error: apt-get install failed'
383390 exit 1
384391fi
385392
393+ # Restore policy
394+ rm -f /usr/sbin/policy-rc.d
395+
386396
387397# ----------------------------------------------------------#
388398# Configure system #
You can’t perform that action at this time.
0 commit comments