Skip to content

Commit 4df891a

Browse files
authored
Fix minor bug in upgrade_phppgadmin (hestiacp#3450)
* Fix minor bug in upgrade_phppgadmin [ -d /usr/share/phppgadmin ] || mkdir -p /usr/share/phppgadmin instead of [ -d /usr/share/phpmyadmin ] || mkdir -p /usr/share/phpmyadmin * Also add warning to fpm templates * Remove not needed sed from script
1 parent 113d85e commit 4df891a

File tree

7 files changed

+25
-10
lines changed

7 files changed

+25
-10
lines changed

func/upgrade.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ upgrade_phppgadmin() {
580580
else
581581
# Display upgrade information
582582
echo "[ * ] Upgrading phppgadmin to version $pga_v..."
583-
[ -d /usr/share/phpmyadmin ] || mkdir -p /usr/share/phpmyadmin
583+
[ -d /usr/share/phppgadmin ] || mkdir -p /usr/share/phppgadmin
584584
# Download latest phpMyAdmin release
585585
wget --retry-connrefused --quiet https://github.com/hestiacp/phppgadmin/releases/download/v$pga_v/phppgadmin-v$pga_v.tar.gz
586586
tar xzf phppgadmin-v$pga_v.tar.gz -C /usr/share/phppgadmin/

install/deb/php-fpm/multiphp.tpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
; origin-src: deb/php-fpm/multiphp.tpl
2+
;#=========================================================================#
3+
;# Default Web Domain Template #
4+
;# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
5+
;# https://hestiacp.com/docs/server-administration/web-templates.html #
6+
;#=========================================================================#
27

38
[%domain%]
49
listen = /run/php/php%backend_version%-fpm-%domain%.sock

install/deb/templates/web/php-fpm/default.tpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
; origin-src: deb/templates/web/php-fpm/default.tpl
2+
;#=========================================================================#
3+
;# Default Web Domain Template #
4+
;# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
5+
;# https://hestiacp.com/docs/server-administration/web-templates.html #
6+
;#=========================================================================#
7+
8+
29

310
[%backend%]
411
listen = /run/php/php%backend_version%-fpm-%domain%.sock

install/deb/templates/web/php-fpm/no-php.tpl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
; origin-src: deb/templates/web/php-fpm/no-php.tpl
2+
;#=========================================================================#
3+
;# Default Web Domain Template #
4+
;# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
5+
;# https://hestiacp.com/docs/server-administration/web-templates.html #
6+
;#=========================================================================#
27

38
;[%backend%]
49
;listen = /run/php/%backend%.sock
@@ -24,4 +29,4 @@
2429
;env[PATH] = /usr/local/bin:/usr/bin:/bin
2530
;env[TMP] = /home/%user%/tmp
2631
;env[TMPDIR] = /home/%user%/tmp
27-
;env[TEMP] = /home/%user%/tmp
32+
;env[TEMP] = /home/%user%/tmp

install/deb/templates/web/php-fpm/socket.tpl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
; origin-src: deb/templates/web/php-fpm/socket.tpl
2+
;#=========================================================================#
3+
;# Default Web Domain Template #
4+
;# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
5+
;# https://hestiacp.com/docs/server-administration/web-templates.html #
6+
;#=========================================================================#
27

38
[%backend%]
49
listen = /run/php/%backend%.sock
@@ -24,4 +29,4 @@ env[HOSTNAME] = $HOSTNAME
2429
env[PATH] = /usr/local/bin:/usr/bin:/bin
2530
env[TMP] = /home/%user%/tmp
2631
env[TMPDIR] = /home/%user%/tmp
27-
env[TEMP] = /home/%user%/tmp
32+
env[TEMP] = /home/%user%/tmp

install/hst-install-debian.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,6 @@ if [ "$postgresql" = 'no' ]; then
918918
software=$(echo "$software" | sed -e "s/postgresql-contrib//")
919919
software=$(echo "$software" | sed -e "s/postgresql//")
920920
software=$(echo "$software" | sed -e "s/php$fpm_v-pgsql//")
921-
software=$(echo "$software" | sed -e "s/phppgadmin//")
922921
fi
923922
if [ "$fail2ban" = 'no' ]; then
924923
software=$(echo "$software" | sed -e "s/fail2ban//")

install/hst-install-ubuntu.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -900,12 +900,6 @@ if [ "$postgresql" = 'no' ]; then
900900
software=$(echo "$software" | sed -e "s/postgresql-contrib//")
901901
software=$(echo "$software" | sed -e "s/postgresql//")
902902
software=$(echo "$software" | sed -e "s/php$fpm_v-pgsql//")
903-
if [ "$multiphp" = 'yes' ]; then
904-
for v in "${multiphp_v[@]}"; do
905-
software=$(echo "$software" | sed -e "s/php$v-pgsql//")
906-
done
907-
fi
908-
software=$(echo "$software" | sed -e "s/phppgadmin//")
909903
fi
910904
if [ "$fail2ban" = 'no' ]; then
911905
software=$(echo "$software" | sed -e "s/fail2ban//")

0 commit comments

Comments
 (0)