From b796e816ff8b5cb2fb8b1043fb8f37fccaa26011 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 5 Nov 2017 02:55:23 -0500 Subject: can't write to root-owned subdirectory of /tmp --- modules/package/manifests/makepkg.pp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'modules/package') diff --git a/modules/package/manifests/makepkg.pp b/modules/package/manifests/makepkg.pp index c39c732..3666970 100644 --- a/modules/package/manifests/makepkg.pp +++ b/modules/package/manifests/makepkg.pp @@ -9,10 +9,9 @@ define package::makepkg($asdeps=false) { exec { "install $name": provider => "shell", command => " - mkdir -p /tmp/makepkg - cd /tmp/makepkg - rm -rf '$name' - su doy -c 'git clone https://aur.archlinux.org/$name.git' + cd /tmp + rm -rf 'makepkg-$name' + su doy -c 'git clone https://aur.archlinux.org/$name.git makepkg-$name' cd '$name' su doy -c makepkg pacman -U --noconfirm --needed $extra_cmdline $name-*.pkg.tar.xz -- cgit v1.2.3-54-g00ecf