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

Commit df4c502

Browse files
committed
Fix Scripts dir ownership in installer
1 parent ce0e425 commit df4c502

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

installbuilder/datafiles/Base_DSC.data

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,10 @@ ln -fs $LIBCURL_SO /opt/omi/lib/libcurl.so.4
510510

511511
#if BUILD_OMS == 1
512512
chown -R omsagent /opt/microsoft/${{SHORT_NAME}}/Scripts
513+
514+
# Reset Script dir ownership back to root
515+
chown root /opt/microsoft/${{SHORT_NAME}}/Scripts
516+
513517
su - omsagent -c "/opt/microsoft/${{SHORT_NAME}}/Scripts/ImportGPGKey.sh /opt/microsoft/${{SHORT_NAME}}/keys/msgpgkey.asc keymgmtring.gpg"
514518
su - omsagent -c "/opt/microsoft/${{SHORT_NAME}}/Scripts/ImportGPGKey.sh /opt/microsoft/${{SHORT_NAME}}/keys/dscgpgkey.asc keyring.gpg"
515519

0 commit comments

Comments
 (0)