Commit 808a0536 authored by Benjamin Rokseth's avatar Benjamin Rokseth
Browse files

Fix naming to conform to cups autodiscovery

parent 0448d775
......@@ -28,11 +28,11 @@ var (
* wkhtmltopdf binary MUST be downloaded to /usr/bin
* this file needs to be chown root and chmod 755 executable in /usr/lib/cups/backend/
* job needs two extra options passed: koha-printer-type and koha-origin-ip
* kohaprint.json mapping must exist beside this file
* kohaprinter_mapping.json mapping must exist beside this file
*/
func main() {
lfile, err := os.Create("/tmp/kohaprint.log")
lfile, err := os.Create("/tmp/kohaprinter.log")
if err != nil {
fail(err)
}
......@@ -50,10 +50,10 @@ func main() {
Log.Printf("[INFO ] MAPPING: %v", mapping)
// No args? Return status line as cups expects this to discover backend
if len(os.Args) == 1 {
fmt.Println("network kohaprint \"Unknown\" \"Print any job to queue specified in device-URI\"")
fmt.Println("network kohaprinter \"Unknown\" \"Print any job to queue specified in device-URI\"")
os.Exit(0)
} else if len(os.Args) < 6 {
fmt.Println("Usage: kohaprint job-id user title copies options [file]")
fmt.Println("Usage: kohaprinter job-id user title copies options [file]")
os.Exit(0)
}
......@@ -96,7 +96,7 @@ func main() {
fail(err)
}
tmpf, err := ioutil.TempFile("", "kohaprintpdf")
tmpf, err := ioutil.TempFile("", "kohaprinter_pdf")
if err != nil {
fail(err)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment