buildd lingering: remove a bashism
authorAurelien Jarno <aurelien@aurel32.net>
Mon, 2 Apr 2018 21:40:08 +0000 (23:40 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 2 Apr 2018 21:40:08 +0000 (23:40 +0200)
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
modules/buildd/manifests/init.pp

index 4f5c291..1d9aa20 100644 (file)
@@ -186,7 +186,7 @@ class buildd ($ensure=present) {
 
                file { '/home/buildd/.profile':
                        content  => @(EOT),
-                               export XDG_RUNTIME_DIR="/run/user/$UID"
+                               export XDG_RUNTIME_DIR="/run/user/$(id -u)"
                                export DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus"
                                | EOT
                        group   => buildd,