Skip to content

Commit 83e87a5

Browse files
authored
Merge pull request hestiacp#16 from serghey-rodin/master
update from master
2 parents 21a1444 + 563a9d8 commit 83e87a5

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

bin/v-backup-user

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -393,13 +393,15 @@ if [ ! -z "$DB_SYSTEM" ] && [ "$DB" != '*' ]; then
393393

394394
dump="$tmpdir/db/$database/$database.$TYPE.sql"
395395
grants="$tmpdir/db/$database/conf/$database.$TYPE.$DBUSER"
396-
case $TYPE in
397-
mysql) dump_mysql_database ;;
398-
pgsql) dump_pgsql_database ;;
399-
esac
400-
401-
# Compress dump
402-
gzip -$BACKUP_GZIP $dump
396+
if [ ! -f "$dump" ]; then
397+
case $TYPE in
398+
mysql) dump_mysql_database ;;
399+
pgsql) dump_pgsql_database ;;
400+
esac
401+
402+
# Compress dump
403+
gzip -$BACKUP_GZIP $dump
404+
fi
403405
done
404406

405407
# Print total

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)