Skip to content

Commit

Permalink
finally
Browse files Browse the repository at this point in the history
  • Loading branch information
HenriWahl committed Jul 21, 2024
1 parent aa0e710 commit 7b628ad
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions build/build-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
cp $CMK/var/check_mk/packages_local/*.mkp /source

0 comments on commit 7b628ad

Please sign in to comment.