summaryrefslogtreecommitdiffstats
path: root/modules/package
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2017-11-05 02:55:23 -0500
committerJesse Luehrs <doy@tozt.net>2017-11-05 02:55:23 -0500
commitb796e816ff8b5cb2fb8b1043fb8f37fccaa26011 (patch)
tree69b90d01f8ca5ecf5d87e64ee4b85a10400977f6 /modules/package
parentdb89441de14630e0f4a92182c317b12e14742bc5 (diff)
downloadpuppet-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.pp7
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