Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
Fix Scripts dir ownership in installer
Browse files Browse the repository at this point in the history
  • Loading branch information
taglines committed Dec 3, 2021
1 parent ce0e425 commit df4c502
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions installbuilder/datafiles/Base_DSC.data
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,10 @@ ln -fs $LIBCURL_SO /opt/omi/lib/libcurl.so.4

#if BUILD_OMS == 1
chown -R omsagent /opt/microsoft/${{SHORT_NAME}}/Scripts

# Reset Script dir ownership back to root
chown root /opt/microsoft/${{SHORT_NAME}}/Scripts

su - omsagent -c "/opt/microsoft/${{SHORT_NAME}}/Scripts/ImportGPGKey.sh /opt/microsoft/${{SHORT_NAME}}/keys/msgpgkey.asc keymgmtring.gpg"
su - omsagent -c "/opt/microsoft/${{SHORT_NAME}}/Scripts/ImportGPGKey.sh /opt/microsoft/${{SHORT_NAME}}/keys/dscgpgkey.asc keyring.gpg"

Expand Down

0 comments on commit df4c502

Please sign in to comment.