mirror of https://github.com/tteck/Proxmox.git
parent
eb881fefa6
commit
741f38fe2f
|
@ -61,7 +61,7 @@ if [[ ${prompt,,} =~ ^(y|yes)$ ]]; then
|
||||||
mkdir -p /var/www/html/phpMyAdmin
|
mkdir -p /var/www/html/phpMyAdmin
|
||||||
$STD tar xvf phpMyAdmin-5.2.1-all-languages.tar.gz --strip-components=1 -C /var/www/html/phpMyAdmin
|
$STD tar xvf phpMyAdmin-5.2.1-all-languages.tar.gz --strip-components=1 -C /var/www/html/phpMyAdmin
|
||||||
cp /var/www/html/phpMyAdmin/config.sample.inc.php /var/www/html/phpMyAdmin/config.inc.php
|
cp /var/www/html/phpMyAdmin/config.sample.inc.php /var/www/html/phpMyAdmin/config.inc.php
|
||||||
SECRET=$(openssl rand -base64 32)
|
SECRET=$(openssl rand -base64 24)
|
||||||
sed -i "s#\$cfg\['blowfish_secret'\] = '';#\$cfg['blowfish_secret'] = '${SECRET}';#" /var/www/html/phpMyAdmin/config.inc.php
|
sed -i "s#\$cfg\['blowfish_secret'\] = '';#\$cfg['blowfish_secret'] = '${SECRET}';#" /var/www/html/phpMyAdmin/config.inc.php
|
||||||
chmod 660 /var/www/html/phpMyAdmin/config.inc.php
|
chmod 660 /var/www/html/phpMyAdmin/config.inc.php
|
||||||
chown -R www-data:www-data /var/www/html/phpMyAdmin
|
chown -R www-data:www-data /var/www/html/phpMyAdmin
|
||||||
|
|
Loading…
Reference in New Issue