diff options
author | Jesse Luehrs <doy@tozt.net> | 2017-11-05 02:55:23 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2017-11-05 02:55:23 -0500 |
commit | b796e816ff8b5cb2fb8b1043fb8f37fccaa26011 (patch) | |
tree | 69b90d01f8ca5ecf5d87e64ee4b85a10400977f6 /modules/package | |
parent | db89441de14630e0f4a92182c317b12e14742bc5 (diff) | |
download | puppet-tozt-b796e816ff8b5cb2fb8b1043fb8f37fccaa26011.tar.gz puppet-tozt-b796e816ff8b5cb2fb8b1043fb8f37fccaa26011.zip |
can't write to root-owned subdirectory of /tmp
Diffstat (limited to 'modules/package')
-rw-r--r-- | modules/package/manifests/makepkg.pp | 7 |
1 files changed, 3 insertions, 4 deletions
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 |