summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2021-10-31 01:04:48 +0200
committerHugo Hörnquist <hugo@hornquist.se>2021-10-31 01:04:48 +0200
commit3a04413034796e32a46b667bfb01d43fd7a29fe5 (patch)
tree2812279738d89b3046aba4b2853e74fea924c3d7
parentUpdate run. (diff)
downloadwebdav_server-3a04413034796e32a46b667bfb01d43fd7a29fe5.tar.gz
webdav_server-3a04413034796e32a46b667bfb01d43fd7a29fe5.tar.xz
Fixes to run script.
-rwxr-xr-xrun12
1 files changed, 8 insertions, 4 deletions
diff --git a/run b/run
index 28b72ed..789d1b6 100755
--- a/run
+++ b/run
@@ -2,9 +2,9 @@
# Needed on ubuntu, since this path is not set for root
# Arch installs puppet in /usr/bin/puppet.
-export PATH="/opt/puppetlabs/bin/puppet:$PATH"
+export PATH="/opt/puppetlabs/bin/:$PATH"
-osid=$(awk -F= '/^ID/ { print $2 }' /etc/os-release)
+osid=$(awk -F= '/^ID=/ { print $2 }' /etc/os-release)
# This is the WRONG way to do it, but it sholud work for now
case $osid in
@@ -16,7 +16,11 @@ case $osid in
;;
esac
-sudo puppet apply manifests \
- --modulepath="${modpath}:modules" \
+set -x
+
+sudo env PATH="/opt/puppetlabs/bin/:$PATH" \
+ puppet apply \
+ --modulepath="$PWD/modules:${modpath}" \
+ manifests \
--verbose \
"$@"