nmap
true
yes
- http://www.pfsense.com/packages/config/powerdns.schema
system("rm -rf /usr/local/pgsql");
system("/usr/sbin/pw userdel pgsql");
system("/usr/bin/killall -9 postgres");
echo "<p>";
echo "Reboot required... One moment...";
echo "<p>";
system("/sbin/shutdown -r now");
echo "<pre>";
echo "Creating DB...";
system("/usr/bin/su -l pgsql -c initdb");
echo "Starting DB...";
system("/usr/local/etc/rc.d/010.pgsql.sh start");
system("/usr/bin/su -l pgsql -c \"dropdb powerdns\" ");
system("/usr/bin/su -l pgsql -c \"createdb powerdns\" ");
echo "Creating DB Schema...";
system("cat /usr/local/pkg/powerdns.schema | /usr/bin/su -l pgsql -c \"psql powerdns\" ");
system("cat /usr/local/www/powerdnsadmin-0.3/docs/postgresql.sql | /usr/bin/su -l pgsql -c \"psql powerdns\" ");