summaryrefslogtreecommitdiffstats
path: root/remote/modules/run-virt/data/opt/openslx/scripts
diff options
context:
space:
mode:
authorSimon Rettberg2015-10-05 18:41:51 +0200
committerSimon Rettberg2015-10-05 18:41:51 +0200
commitdd6fc5fcca6759afe1087fbfaab5449588561f21 (patch)
tree020c575f30e4c941f4ff8dbdf47197770e2109d0 /remote/modules/run-virt/data/opt/openslx/scripts
parent[auth-freiburg] Add proper group search base for sssd (diff)
downloadtm-scripts-dd6fc5fcca6759afe1087fbfaab5449588561f21.tar.gz
tm-scripts-dd6fc5fcca6759afe1087fbfaab5449588561f21.tar.xz
tm-scripts-dd6fc5fcca6759afe1087fbfaab5449588561f21.zip
[run-virt/printergui] Add wrapping helper script for printing that does some error checking on the file received from lpd
Diffstat (limited to 'remote/modules/run-virt/data/opt/openslx/scripts')
-rw-r--r--remote/modules/run-virt/data/opt/openslx/scripts/includes/setup_printer_lpd.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/remote/modules/run-virt/data/opt/openslx/scripts/includes/setup_printer_lpd.inc b/remote/modules/run-virt/data/opt/openslx/scripts/includes/setup_printer_lpd.inc
index 425ae9d9..ab010722 100644
--- a/remote/modules/run-virt/data/opt/openslx/scripts/includes/setup_printer_lpd.inc
+++ b/remote/modules/run-virt/data/opt/openslx/scripts/includes/setup_printer_lpd.inc
@@ -3,7 +3,7 @@
#####################################
QUEUE="STANDARD" # This has to match the queue you configured in your VM
-USER="$(/usr/bin/whoami)"
+USER="$(whoami)"
SPOOLDIR=
### Disabled: 100megs is not enough, some jobs are HUGE, try to use temp which should be on disk
@@ -28,7 +28,7 @@ fi
# TODO: externalize with something like runvirt.d (other parts might benefit from that too)
tcpsvd -E 192.168.101.1 5515 \
lpd "$SPOOLDIR" \
- ash -c "/opt/openslx/cups/printergui '${USER}' \"${SPOOLDIR}/${QUEUE}/\$DATAFILE\"" &
+ ash -c "/opt/openslx/scripts/run-virt_print '${USER}' \"${SPOOLDIR}/${QUEUE}/\$DATAFILE\"" &
# PID to kill the process
PID_LPD="$!"