From 7b628ad54dd895c8f909c60f90d6126f9d7821a0 Mon Sep 17 00:00:00 2001 From: HenriWahl <2835065+HenriWahl@users.noreply.github.com> Date: Sun, 21 Jul 2024 22:14:04 +0200 Subject: [PATCH] finally --- build/build-entrypoint.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/build/build-entrypoint.sh b/build/build-entrypoint.sh index ea3a85d..6bb80ea 100644 --- a/build/build-entrypoint.sh +++ b/build/build-entrypoint.sh @@ -21,17 +21,18 @@ cp -R $SOURCE/web . # has to be done by site user su - cmk -c "/omd/sites/cmk/bin/mkp template yum" -ls -l $SOURCE +# otherwise /source is not accepted git config --global --add safe.directory $SOURCE # modify extension config file with correct version number, author etc. -#/build-modify-extension.py $SOURCE $CMK/var/check_mk/packages/yum /build-modify-extension.py $SOURCE $CMK/tmp/check_mk/yum.manifest.temp +# avoid error: +# Error removing file /omd/sites/cmk/local/lib/python3/cmk/base/cee/plugins/bakery/yum.py: [Errno 13] Permission denied: '/omd/sites/cmk/local/lib/python3/cmk/base/cee/plugins/bakery/yum.py' +chmod go+rw $CMK/local/lib/python3/cmk/base/cee/plugins/bakery + # also to be done by site user is packaging the mkp file su - cmk -c "/omd/sites/cmk/bin/mkp package $CMK/tmp/check_mk/yum.manifest.temp" -# let runner read the .mkp file too -chmod +r /omd/sites/cmk/*.mkp # copy created extension package back into volume -cp /omd/sites/cmk/*.mkp /source \ No newline at end of file +cp $CMK/var/check_mk/packages_local/*.mkp /source \ No newline at end of file