Skip to content

Commit

Permalink
Merge pull request #1841 from lukapaunovic/patch-1
Browse files Browse the repository at this point in the history
 Fixing blowfish_secret length (too short) [phpMyAdmin]
  • Loading branch information
anton-reutov committed Mar 23, 2019
2 parents 678c385 + 891dac7 commit 2bde9c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion install/vst-install-amazon.sh
Expand Up @@ -74,6 +74,9 @@ gen_pass() {
echo "$PASS"
}

# Defining 32 char blowfish_secret
blowfish_secret=`openssl rand -base64 32`;

# Defining return code check function
check_result() {
if [ $1 -ne 0 ]; then
Expand Down Expand Up @@ -1023,7 +1026,7 @@ if [ "$mysql" = 'yes' ]; then
cp -f $vestacp/pma/phpMyAdmin.conf /etc/httpd/conf.d/
fi
cp -f $vestacp/pma/config.inc.conf /etc/phpMyAdmin/config.inc.php
sed -i "s/%blowfish_secret%/$(gen_pass)/g" /etc/phpMyAdmin/config.inc.php
sed -i "s#%blowfish_secret#$blowfish_secret#g" /etc/phpMyAdmin/config.inc.php
fi


Expand Down
5 changes: 4 additions & 1 deletion install/vst-install-rhel.sh
Expand Up @@ -83,6 +83,9 @@ gen_pass() {
echo "$PASS"
}

# Defining 32 char blowfish_secret
blowfish_secret=`openssl rand -base64 32`;

# Defining return code check function
check_result() {
if [ $1 -ne 0 ]; then
Expand Down Expand Up @@ -1043,7 +1046,7 @@ if [ "$mysql" = 'yes' ]; then
cp -f $vestacp/pma/phpMyAdmin.conf /etc/httpd/conf.d/
fi
cp -f $vestacp/pma/config.inc.conf /etc/phpMyAdmin/config.inc.php
sed -i "s/%blowfish_secret%/$(gen_pass)/g" /etc/phpMyAdmin/config.inc.php
sed -i "s#%blowfish_secret#$blowfish_secret#g" /etc/phpMyAdmin/config.inc.php
fi


Expand Down

0 comments on commit 2bde9c6

Please sign in to comment.