Skip to content

Commit 0e48458

Browse files
author
Serghey Rodin
committed
Added back policy.d block for daeomon autostart on install
1 parent 6825caa commit 0e48458

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

install/vst-install-ubuntu.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -626,15 +626,15 @@ fi
626626
# Updating system
627627
apt-get update
628628

629-
# Disabling daemon autostart /usr/share/doc/sysv-rc/README.policy-rc.d.gz
630-
#echo -e '#!/bin/sh \nexit 101' > /usr/sbin/policy-rc.d
631-
#chmod a+x /usr/sbin/policy-rc.d
629+
# Disabling daemon autostart on apt-get install
630+
echo -e '#!/bin/sh\nexit 101' > /usr/sbin/policy-rc.d
631+
chmod a+x /usr/sbin/policy-rc.d
632632

633633
# Installing apt packages
634634
apt-get -y install $software
635635
check_result $? "apt-get install failed"
636636

637-
# Restoring policy
637+
# Restoring autostart policy
638638
rm -f /usr/sbin/policy-rc.d
639639

640640

@@ -912,7 +912,7 @@ if [ -z "$ZONE" ]; then
912912
ZONE='UTC'
913913
fi
914914
for pconf in $(find /etc/php* -name php.ini); do
915-
sed -i "s/;date.timezone =/date.timezone = $ZONE/g" $pconf
915+
sed -i "s%;date.timezone =%date.timezone = $ZONE%g" $pconf
916916
sed -i 's%_open_tag = Off%_open_tag = On%g' $pconf
917917
done
918918

@@ -1129,8 +1129,8 @@ if [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then
11291129
fi
11301130
cp -f $vestacp/roundcube/main.inc.php /etc/roundcube/
11311131
cp -f $vestacp/roundcube/db.inc.php /etc/roundcube/
1132-
chmod 640 /etc/roundcube/debian-db-roundcube.php
1133-
chown root:www-data /etc/roundcube/debian-db-roundcube.php
1132+
chmod 640 /etc/roundcube/debian-db*
1133+
chown root:www-data /etc/roundcube/debian-db*
11341134
cp -f $vestacp/roundcube/vesta.php \
11351135
/usr/share/roundcube/plugins/password/drivers/
11361136
cp -f $vestacp/roundcube/config.inc.php /etc/roundcube/plugins/password/

0 commit comments

Comments
 (0)