|
626 | 626 | # Updating system |
627 | 627 | apt-get update |
628 | 628 |
|
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 |
632 | 632 |
|
633 | 633 | # Installing apt packages |
634 | 634 | apt-get -y install $software |
635 | 635 | check_result $? "apt-get install failed" |
636 | 636 |
|
637 | | -# Restoring policy |
| 637 | +# Restoring autostart policy |
638 | 638 | rm -f /usr/sbin/policy-rc.d |
639 | 639 |
|
640 | 640 |
|
@@ -912,7 +912,7 @@ if [ -z "$ZONE" ]; then |
912 | 912 | ZONE='UTC' |
913 | 913 | fi |
914 | 914 | 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 |
916 | 916 | sed -i 's%_open_tag = Off%_open_tag = On%g' $pconf |
917 | 917 | done |
918 | 918 |
|
@@ -1129,8 +1129,8 @@ if [ "$exim" = 'yes' ] && [ "$mysql" = 'yes' ]; then |
1129 | 1129 | fi |
1130 | 1130 | cp -f $vestacp/roundcube/main.inc.php /etc/roundcube/ |
1131 | 1131 | 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* |
1134 | 1134 | cp -f $vestacp/roundcube/vesta.php \ |
1135 | 1135 | /usr/share/roundcube/plugins/password/drivers/ |
1136 | 1136 | cp -f $vestacp/roundcube/config.inc.php /etc/roundcube/plugins/password/ |
|
0 commit comments