Permalink
Browse files

Added back policy.d block for daeomon autostart on install

  • Loading branch information...
Serghey Rodin
Serghey Rodin committed Aug 9, 2018
1 parent 6825caa commit 0e484587a84c74293aa02779f85934f22a575ea2
Showing with 7 additions and 7 deletions.
  1. +7 −7 install/vst-install-ubuntu.sh
@@ -626,15 +626,15 @@ fi
# Updating system
apt-get update
# Disabling daemon autostart /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
# Disabling daemon autostart on apt-get install
echo -e '#!/bin/sh\nexit 101' > /usr/sbin/policy-rc.d
chmod a+x /usr/sbin/policy-rc.d
# Installing apt packages
apt-get -y install $software
check_result $? "apt-get install failed"
# Restoring policy
# Restoring autostart policy
rm -f /usr/sbin/policy-rc.d
@@ -912,7 +912,7 @@ if [ -z "$ZONE" ]; then
ZONE='UTC'
fi
for pconf in $(find /etc/php* -name php.ini); do
sed -i "s/;date.timezone =/date.timezone = $ZONE/g" $pconf
sed -i "s%;date.timezone =%date.timezone = $ZONE%g" $pconf
sed -i 's%_open_tag = Off%_open_tag = On%g' $pconf
done
@@ -1129,8 +1129,8 @@ if [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
fi
cp -f $vestacp/roundcube/main.inc.php /etc/roundcube/
cp -f $vestacp/roundcube/db.inc.php /etc/roundcube/
chmod 640 /etc/roundcube/debian-db-roundcube.php
chown root:www-data /etc/roundcube/debian-db-roundcube.php
chmod 640 /etc/roundcube/debian-db*
chown root:www-data /etc/roundcube/debian-db*
cp -f $vestacp/roundcube/vesta.php \
/usr/share/roundcube/plugins/password/drivers/
cp -f $vestacp/roundcube/config.inc.php /etc/roundcube/plugins/password/

4 comments on commit 0e48458

@ioannidesalex

This comment has been minimized.

Contributor

ioannidesalex replied Aug 9, 2018

@serghey-rodin I am not sure if it has to be like this, but it used to be #!bin/sh \nexit instead of #!bin/sh\nexit

@ioannidesalex

This comment has been minimized.

Contributor

ioannidesalex replied Aug 9, 2018

May I also ask what exactly does the above fix? Thanks.

@serghey-rodin

This comment has been minimized.

Owner

serghey-rodin replied Aug 9, 2018

Without this code apache will be started automatically after apt-get install apache. In our case this leads to premature errors because apache isn't configured properly yet. This policy.d trick enables us to configure apache first and only then start it. When the installation is complete we revert pkg system back to default behavior.

@ioannidesalex

This comment has been minimized.

Contributor

ioannidesalex replied Aug 9, 2018

Thanks a lot for the precise answer @serghey-rodin

Please when you have some time please check the issues we face with Ubuntu 18.04 installation. It's really really important (at least for me).

https://forum.vestacp.com/viewtopic.php?f=41&t=16849&start=10

Thanks once again for your time and your efforts on this project.

Please sign in to comment.