+ todo for nginx and pma configs
* pma blowfish secret generator and tmp dir fixes #861m7vaer Шаблон операционной системы на Debian 10
This commit is contained in:
@ -9,6 +9,7 @@
|
||||
|
||||
vars:
|
||||
- phpmyadmin_version: 5.2.1
|
||||
- blowfish_secret: lookup('community.general.random_string', length=12)
|
||||
|
||||
# Create phpmyadmin config for apache2
|
||||
# TODO: Set blowfish_secret and make access rights for ./tmp directory
|
||||
@ -23,3 +24,7 @@
|
||||
unzip -qq phpMyAdmin-{{ phpmyadmin_version }}-all-languages.zip
|
||||
rm phpMyAdmin-{{ phpmyadmin_version }}-all-languages.zip
|
||||
mv phpMyAdmin-{{ phpmyadmin_version }}-all-languages phpmyadmin
|
||||
cd phpmyadmin
|
||||
cp config.sample.inc.php config.inc.php
|
||||
sed -i "s|'blowfish_secret'] = ''|'blowfish_secret'] = '{{ blowfish_secret }}'|g" config.inc.php
|
||||
mkdir tmp && sudo chown :33 && chmod g+w tmp
|
||||
|
Reference in New Issue
Block a user