mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 04:50:47 -07:00
Fixing blowfish_secret length (too short)
Fixing blowfish_secret length (too short)
This commit is contained in:
parent
aeee40865e
commit
5d9265f84f
1 changed files with 4 additions and 1 deletions
|
@ -74,6 +74,9 @@ gen_pass() {
|
||||||
echo "$PASS"
|
echo "$PASS"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Defining 32 char blowfish_secret
|
||||||
|
blowfish_secret=`openssl rand -base64 32`;
|
||||||
|
|
||||||
# Defining return code check function
|
# Defining return code check function
|
||||||
check_result() {
|
check_result() {
|
||||||
if [ $1 -ne 0 ]; then
|
if [ $1 -ne 0 ]; then
|
||||||
|
@ -1023,7 +1026,7 @@ if [ "$mysql" = 'yes' ]; then
|
||||||
cp -f $vestacp/pma/phpMyAdmin.conf /etc/httpd/conf.d/
|
cp -f $vestacp/pma/phpMyAdmin.conf /etc/httpd/conf.d/
|
||||||
fi
|
fi
|
||||||
cp -f $vestacp/pma/config.inc.conf /etc/phpMyAdmin/config.inc.php
|
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
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue