X-Git-Url: http://git.pjr.cc/?p=php-bacula-disk-changer.git;a=blobdiff_plain;f=bin%2Fpbdc.php;h=b7b8d077136b46530fc43797a7327a739b478aa1;hp=b0424bb5fc927d3e7905d3af86667c756081cbbf;hb=45477c40560ea3bda92e4c03c7ed564228a92bd8;hpb=754af6334eb9dc27818f355409f5528c714dce83 diff --git a/bin/pbdc.php b/bin/pbdc.php index b0424bb..b7b8d07 100644 --- a/bin/pbdc.php +++ b/bin/pbdc.php @@ -65,9 +65,15 @@ function init() } echo "Creating database\n"; - $r = readline("Directory where automount occurs [/changer/]:"); - $r = readline("Number of drives [1]:"); - $r = readline("Size of tapes [20] (in gb):"); + $ra = readline("Directory where automount occurs [/changer/]:"); + $rb = readline("Number of drives [1]:"); + $rc = readline("Size of tapes [20] (in gb):"); + + if($ra == "") $ra = "/changer/"; + if($rb == "") $rb = 1; + if($rc == "") $rc = 20; + + db_getDB($changer_name); } function add_disk() @@ -116,5 +122,7 @@ function add_disk() } // now we try and init the disk + // we have to get automount directory config + //$k = mkdir(); } ?> \ No newline at end of file