Skip to content

Commit 77d6fac

Browse files
authored
multiple small bug fixes (hestiacp#3364)
* Fix: Show / Hide certificate text * Fixed upgrade text typo + Missing phpmyadmin version * Fix redirect on delete system logs * Update update text * Remove white line * Update .pot file * Update translations * Fix delete log behavouir * See suggestion
1 parent 304f1c2 commit 77d6fac

File tree

12 files changed

+96
-89
lines changed

12 files changed

+96
-89
lines changed

func/upgrade.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ upgrade_phpmyadmin() {
601601
if [ -n "$(echo $DB_SYSTEM | grep -w 'mysql')" ]; then
602602
pma_version=$(jq -r .version /usr/share/phpmyadmin/package.json)
603603
if version_ge "$pma_version" "$pma_v"; then
604-
echo "[ * ] phpMyAdmin is up to date (${pma_release_file##*-})..."
604+
echo "[ * ] phpMyAdmin is up to date (${pma_version})..."
605605
# Update permissions
606606
if [ -e /var/lib/phpmyadmin/blowfish_secret.inc.php ]; then
607607
chown root:www-data /var/lib/phpmyadmin/blowfish_secret.inc.php
@@ -706,7 +706,7 @@ upgrade_rainloop() {
706706
}
707707

708708
upgrade_dependencies() {
709-
echo "[ ! ] Update Hesita PHP dependencies"
709+
echo "[ ! ] Update Hestia PHP dependencies..."
710710
$BIN/v-add-sys-dependencies
711711
}
712712

@@ -734,7 +734,7 @@ upgrade_rebuild_dns_templates() {
734734
upgrade_rebuild_users() {
735735
if [ "$UPGRADE_REBUILD_USERS" = "true" ]; then
736736
if [ "$DEBUG_MODE" = "true" ]; then
737-
echo "[ * ] Rebuilding user accounts and domains:"
737+
echo "[ * ] Rebuilding user accounts and domains:..."
738738
else
739739
echo "[ * ] Rebuilding user accounts and domains, this may take a few minutes..."
740740
fi

install/upgrade/versions/1.7.0.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,18 @@ fi
6969
# rename /var/run/xx to /run/
7070
for file in /etc/dovecot/dovecot.conf /etc/clamav/clamd.conf /etc/exim/exim.conf.template /etc/logrotate.d/apache2 /etc/logrotate.d/nginx /etc/mysql/my.cnf /etc/nginx/nginx.conf; do
7171
if [ -f "$file" ]; then
72-
echo "[ * ] Update $file legacy /var/run/ to /run/"
72+
echo "[ * ] Update $file legacy /var/run/ to /run/..."
7373
sed -i 's|/var/run/|/run/|g' $file
7474
fi
7575
done
7676
# Update any custom php templates
7777
for file in $HESTIA/data/templates/web/php-fpm/*; do
78-
echo "[ * ] Update $file legacy /var/run/ to /run/"
78+
echo "[ * ] Update $file legacy /var/run/ to /run/..."
7979
sed -i 's|/var/run/|/run/|g' $file
8080
done
8181

8282
for file in /etc/php/*/fpm/pool.d/www.conf; do
83-
echo "[ * ] Update $file legacy /var/run/ to /run/"
83+
echo "[ * ] Update $file legacy /var/run/ to /run/..."
8484
sed -i 's|/var/run/|/run/|g' $file
8585
done
8686

@@ -101,7 +101,7 @@ if echo "$BACKUP_SYSTEM" | grep "google" > /dev/null; then
101101
fi
102102

103103
if [ -f /etc/logrotate.d/httpd-prerotate/awstats ]; then
104-
echo "[ * ] Update Awstats prerotate to Hestia update method"
104+
echo "[ * ] Update Awstats prerotate to Hestia update method..."
105105
# Replace awstatst function
106106
cp -f $HESTIA_INSTALL_DIR/logrotate/httpd-prerotate/awstats /etc/logrotate.d/httpd-prerotate/
107107
fi
@@ -113,7 +113,7 @@ if [ "$PHPMYADMIN_KEY" != "" ]; then
113113
fi
114114

115115
if [ -f /etc/nginx/nginx.conf ] && [ ! -f /etc/nginx/conf.d/cloudflare.inc ]; then
116-
echo "[ * ] Enable support for updating Cloudflare Ips"
116+
echo "[ * ] Enable support for updating Cloudflare Ips..."
117117
sed -i '/set_real_ip_from/d' /etc/nginx/nginx.conf
118118
sed -i '/real_ip_header/d' /etc/nginx/nginx.conf
119119
sed -i 's|# Cloudflare https://www.cloudflare.com/ips|# Cloudflare https://www.cloudflare.com/ips\n include /etc/nginx/conf.d/cloudflare.inc;|g' /etc/nginx/nginx.conf

web/delete/log/index.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
exec(HESTIA_CMD . "v-delete-user-log " . $user, $output, $return_var);
1717
check_return_code($return_var, $output);
1818
unset($output);
19-
unset($token);
2019

2120
if ($return_var > 0) {
2221
header("Location: /list/log/");
55 Bytes
Binary file not shown.
50 Bytes
Binary file not shown.
53 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)