|
|
@@ -93,4 +93,13 @@ fi
|
|
|
if [ -f "/etc/cron.d/hestia-sftp" ]; then
|
|
|
rm /etc/cron.d/hestia-sftp
|
|
|
echo "@reboot root sleep 60 && /usr/local/hestia/bin/v-add-sys-sftp-jail > /dev/null" > /etc/cron.d/hestia-sftp
|
|
|
+fi
|
|
|
+
|
|
|
+if [ -d /etc/phpmyadmin/conf.d ]; then
|
|
|
+ for file in /etc/phpmyadmin/conf.d/*; do
|
|
|
+ if [ -z $(cat $file | grep 'information_schema') ]; then
|
|
|
+ echo "[ * ] Update phpMyAdmin server configuration"
|
|
|
+ echo "\$cfg['Servers'][\$i]['hide_db'] = 'information_schema';" >> $file
|
|
|
+ fi
|
|
|
+ done
|
|
|
fi
|