Skip to content

Commit 8ff9c3b

Browse files
committed
Fix some parts in phpmyadmin function.
1 parent 5f0798a commit 8ff9c3b

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

install/hst-install-debian.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,15 +1102,16 @@ wget https://files.phpmyadmin.net/phpMyAdmin/$pma_v/phpMyAdmin-$pma_v-all-langua
11021102
tar xzf phpMyAdmin-$pma_v-all-languages.tar.gz
11031103

11041104
# Delete file to prevent error
1105-
if [ "$pma_#----------------------------------------------------------#
1106-
# Update phpMyAdmin #
1107-
v" = '4.8.3' ]; then
1105+
if [ "$pma_v" = '4.8.3' ]; then
11081106
rm -fr /usr/share/phpmyadmin/doc/html
11091107
fi
11101108

11111109
# Overwrite old files
11121110
cp -rf phpMyAdmin-$pma_v-all-languages/* /usr/share/phpmyadmin
11131111

1112+
# Set config directory
1113+
sed -i "s|define('CONFIG_DIR', '');|define('CONFIG_DIR', '/etc/phpmyadmin/');|" /usr/share/phpmyadmin/libraries/vendor_config.php
1114+
11141115
# Clear Up
11151116
rm -fr phpMyAdmin-$pma_v-all-languages
11161117
rm -f phpMyAdmin-$pma_v-all-languages.tar.gz

install/hst-install-ubuntu.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,15 +1102,16 @@ wget https://files.phpmyadmin.net/phpMyAdmin/$pma_v/phpMyAdmin-$pma_v-all-langua
11021102
tar xzf phpMyAdmin-$pma_v-all-languages.tar.gz
11031103

11041104
# Delete file to prevent error
1105-
if [ "$pma_#----------------------------------------------------------#
1106-
# Update phpMyAdmin #
1107-
v" = '4.8.3' ]; then
1105+
if [ "$pma_v" = '4.8.3' ]; then
11081106
rm -fr /usr/share/phpmyadmin/doc/html
11091107
fi
11101108

11111109
# Overwrite old files
11121110
cp -rf phpMyAdmin-$pma_v-all-languages/* /usr/share/phpmyadmin
11131111

1112+
# Set config directory
1113+
sed -i "s|define('CONFIG_DIR', '');|define('CONFIG_DIR', '/etc/phpmyadmin/');|" /usr/share/phpmyadmin/libraries/vendor_config.php
1114+
11141115
# Clear Up
11151116
rm -fr phpMyAdmin-$pma_v-all-languages
11161117
rm -f phpMyAdmin-$pma_v-all-languages.tar.gz

0 commit comments

Comments
 (0)