Skip to content

Commit fef44df

Browse files
authored
Merge pull request hestiacp#1227 from hestiacp/staging/fixes
Staging/fixes
2 parents 204e433 + e576fc9 commit fef44df

File tree

5 files changed

+13
-19
lines changed

5 files changed

+13
-19
lines changed

CHANGELOG.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ All notable changes to this project will be documented in this file.
99
- `UPGRADE_SEND_EMAIL` = Sends an email notification to admin email address
1010
- `UPGRADE_SEND_EMAIL_LOG` = Sends installation log output to admin email address
1111
- Upgrade process will now save logs to the `hst_backups` directory.
12-
- Support for removing backup remote location (#1083)
12+
- Support for removing backup remote location (#1083).
1313
- Add support Proftpd TLS Support
14-
- Add the possibility to assign user "Administrators" rights on login. Replaces "root" login. Notifications are only send towards the "admin" account email
15-
- Updated translations system with the use of Gettext. Modified / Updated all translated strings
16-
- Updated MariaDB to 10.5 (Manual upgrade required install/upgrade/manual/upgrade_mariadb.sh)
14+
- Add the possibility to assign user "Administrators" rights on login. Replaces "root" login. Notifications are only send towards the "admin" account email.
15+
- Updated translations system with the use of Gettext. Modified / Updated all translated strings.
16+
- Use php7.4 as default version.
17+
- Updated MariaDB to 10.5 (Manual upgrade required install/upgrade/manual/upgrade_mariadb.sh).
1718

1819
## Bugfixes
1920
- Removed root login (root / root password )

bin/v-add-sys-filemanager

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,6 @@ if [ ! -f "$COMPOSER_BIN" ]; then
5252
fi
5353
fi
5454

55-
# Ensure PHP 7.3 is installed before continuing
56-
if [ ! -f "/usr/bin/php7.3" ]; then
57-
$BIN/v-add-user-notification admin 'File Manager installation failed!' '<b>Unable to proceed with installation of File Manager.</b><br><br>Package <b>php7.3-cli</b> is missing from your system. Please check your PHP installation and environment settings.'
58-
echo "ERROR: PHP 7.3 not installed on your system, aborting."
59-
exit 1
60-
fi
61-
6255
# Perform verification if read-only mode is enabled
6356
check_hestia_demo_mode
6457

@@ -81,7 +74,7 @@ cp --recursive --force ${HESTIA_INSTALL_DIR}/filemanager/filegator/* "${FM_INSTA
8174

8275
chown $user: -R "${FM_INSTALL_DIR}"
8376

84-
COMPOSER_HOME="$HOMEDIR/$user/.config/composer" user_exec /usr/bin/php7.3 $COMPOSER_BIN --quiet --no-dev install
77+
COMPOSER_HOME="$HOMEDIR/$user/.config/composer" user_exec /usr/bin/php $COMPOSER_BIN --quiet --no-dev install
8578

8679
# Check if installation was successful, if not abort script and throw error message notification and clean-up
8780
if [ $? -ne 0 ]; then

bin/v-restore-user

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ if [ "$mail" != 'no' ] && [ ! -z "$MAIL_SYSTEM" ]; then
591591
format_domain_idn
592592

593593
# Restoring emails
594-
if [ $BACKUP_MODE = 'zstd' ]; then
594+
if [ $backup_mode = 'zstd' ]; then
595595
if [ -e "$tmpdir/mail/$domain/accounts.tar.zst" ]; then
596596
chmod u+w "$HOMEDIR/$user/mail/$domain_idn"
597597
$BIN/v-extract-fs-archive "$user" "$tmpdir/mail/$domain/accounts.tar.zst" "$HOMEDIR/$user/mail/$domain_idn/"
@@ -696,7 +696,7 @@ if [ "$db" != 'no' ] && [ ! -z "$DB_SYSTEM" ]; then
696696
fi
697697

698698
# Unzipping database dump
699-
if [ $BACKUP_MODE = 'zstd' ]; then
699+
if [ $backup_mode = 'zstd' ]; then
700700
zstd -d $tmpdir/db/$database/$database.*.sql.zst
701701
else
702702
gzip -d $tmpdir/db/$database/$database.*.sql.gz
@@ -759,7 +759,7 @@ if [ "$udir" != 'no' ]; then
759759

760760
# Creating user dir restore list
761761
backup_dirs=$(tar -tf $BACKUP/$backup |grep "^./user_dir")
762-
if [ $BACKUP_MODE = 'zstd' ]; then
762+
if [ $backup_mode = 'zstd' ]; then
763763
backup_dirs=$(echo "$backup_dirs" |grep tar.zst)
764764
backup_dirs=$(echo "$backup_dirs" |cut -f 3 -d /)
765765
backup_dirs=$(echo "$backup_dirs" |sed "s/.tar.zst//")
@@ -777,7 +777,7 @@ if [ "$udir" != 'no' ]; then
777777

778778
for user_dir in $user_dirs; do
779779
echo -e "$(date "+%F %T") $user_dir" |tee -a $tmpdir/restore.log
780-
if [ $BACKUP_MODE = 'zstd' ]; then
780+
if [ $backup_mode = 'zstd' ]; then
781781
tar xf "$BACKUP/$backup" -C "$tmpdir" --no-wildcards "./user_dir/$user_dir.tar.zst"
782782
else
783783
tar xf "$BACKUP/$backup" -C "$tmpdir" --no-wildcards "./user_dir/$user_dir.tar.gz"
@@ -793,7 +793,7 @@ if [ "$udir" != 'no' ]; then
793793
chown "$user" "$tmpdir/user_dir"
794794
chown "$user" "$HOMEDIR/$user"
795795
[ -e "$HOMEDIR/$user/$user_dir" ] && chown "$user" "$HOMEDIR/$user/$user_dir"
796-
if [ $BACKUP_MODE = 'zstd' ]; then
796+
if [ $backup_mode = 'zstd' ]; then
797797
$BIN/v-extract-fs-archive "$user" "$tmpdir/user_dir/$user_dir.tar.zst" "$HOMEDIR/$user"
798798
else
799799
$BIN/v-extract-fs-archive "$user" "$tmpdir/user_dir/$user_dir.tar.gz" "$HOMEDIR/$user"

install/hst-install-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ VERBOSE='no'
2626
HESTIA_INSTALL_VER='1.3.0~beta'
2727
pma_v='5.0.2'
2828
multiphp_v=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4")
29-
fpm_v="7.3"
29+
fpm_v="7.4"
3030
mariadb_v="10.5"
3131

3232
if [ "$release" -eq 9 ]; then

install/hst-install-ubuntu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ VERBOSE='no'
2626
HESTIA_INSTALL_VER='1.3.0~beta'
2727
pma_v='5.0.2'
2828
multiphp_v=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4")
29-
fpm_v="7.3"
29+
fpm_v="7.4"
3030
mariadb_v="10.5"
3131

3232
# Defining software pack for all distros

0 commit comments

Comments
 (0)