File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ echo "\$cfg['Servers'][\$i]['tracking'] = 'pma__tracking';" >> $pmapath
4141echo " \$ cfg['Servers'][\$ i]['table_coords'] = 'pma__table_coords';" >> $pmapath
4242echo " \$ cfg['Servers'][\$ i]['pdf_pages'] = 'pma__pdf_pages';" >> $pmapath
4343echo " \$ cfg['Servers'][\$ i]['designer_coords'] = 'pma__designer_coords';" >> $pmapath
44+ echo " \$ cfg['Servers'][\$ i]['hide_db'] = 'information_schema';" >> $pmapath
4445
4546# SOME WORK with DATABASE (table / user)
4647PMADB=phpmyadmin
Original file line number Diff line number Diff line change 9393if [ -f " /etc/cron.d/hestia-sftp" ]; then
9494 rm /etc/cron.d/hestia-sftp
9595 echo " @reboot root sleep 60 && /usr/local/hestia/bin/v-add-sys-sftp-jail > /dev/null" > /etc/cron.d/hestia-sftp
96+ fi
97+
98+ if [ -d /etc/phpmyadmin/conf.d ]; then
99+ for file in /etc/phpmyadmin/conf.d/* ; do
100+ if [ -z $( cat $file | grep ' information_schema' ) ]; then
101+ echo " [ * ] Update phpMyAdmin server configuration"
102+ echo " \$ cfg['Servers'][\$ i]['hide_db'] = 'information_schema';" >> $file
103+ fi
104+ done
96105fi
You can’t perform that action at this time.
0 commit comments