Right now the configuration file is using php with nested array, this makes it hard to do automated installation / vm provisionning:
cp /usr/share/php-pg-admin-6/{config.inc.php-dist,config.inc.php}
sed -r -i "s/\\\$conf\['servers'\]\[0\]\['defaultdb'\] = 'template1';/\\\$conf\['servers'\]\[0\]\['defaultdb'\] = '${DB_NAME}';/g" /usr/share/php-pg-admin-6/config.inc.php
Would you consider using a format that is easier to manage like yml?
Right now the configuration file is using php with nested array, this makes it hard to do automated installation / vm provisionning:
cp /usr/share/php-pg-admin-6/{config.inc.php-dist,config.inc.php} sed -r -i "s/\\\$conf\['servers'\]\[0\]\['defaultdb'\] = 'template1';/\\\$conf\['servers'\]\[0\]\['defaultdb'\] = '${DB_NAME}';/g" /usr/share/php-pg-admin-6/config.inc.phpWould you consider using a format that is easier to manage like yml?