Compare commits

...

2 Commits

Author SHA1 Message Date
a1cd75a991 changes for config 2024-07-17 17:40:56 +00:00
7bf3e9c703 default config 2024-07-17 17:40:04 +00:00
2 changed files with 6 additions and 5 deletions

5
etc/default/config.ini Normal file
View File

@ -0,0 +1,5 @@
[customer]
cust_uuid = 00000000-0000-0000-0000-000000000000
[syslog]
logfile = /var/log/bgpblacklist.log

View File

@ -2,11 +2,7 @@
<?php
if ( !file_exists("/opt/bgpblist/etc/config.ini") ) {
echo "ERROR: no config file\n";
file_put_contents("/opt/bgpblist/etc/config.ini","[customer]
cust_uuid = 00000000-0000-0000-0000-000000000000
[syslog]
logfile = /var/log/bgpblacklist.log");
copy("/opt/bgpblist/etc/default/config.ini","/opt/bgpblist/etc/config.ini");
echo "INFO: file created, edit it before next start\n";
die();
}