Skip to content

Commit

Permalink
Add user root to SDK-related formulas (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwokaty authored Oct 24, 2023
1 parent 112a9d6 commit 9988085
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion saltstack/salt/rlang/mac.sls
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ symlink_previous_version:
- target: '{{ r.version[2:] }}-{{ subpath }}'
- cwd: /Library/Frameworks/R.framework/Versions
- force: True
- user: {{ machine.user.name }}
- user: root
- group: staff
download_minimum_supported_macossdk:
Expand All @@ -134,6 +134,7 @@ untar_macossdk:
cmd.run:
- name: tar -xf {{ machine.user.home }}/{{ machine.user.name }}/Downloads/MacOSX11.3.sdk.tar.xz
- cwd: /Library/Developer/CommandLineTools/SDKs
- user: root
- group: wheel
- require:
- cmd: download_minimum_supported_macossdk
Expand All @@ -143,6 +144,7 @@ symlink_minor_to_major_version:
- name: /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
- target: MacOSX11.3.sdk
- cwd: /Library/Developer/CommandLineTools/SDKs
- user: root
- group: wheel
- require:
- cmd: untar_macossdk
Expand All @@ -152,6 +154,7 @@ fix_gfortran_sdk_symlink:
- name: /opt/gfortran/SDK
- target: /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk
- cwd: /opt/gfortran
- user: root
- group: admin
- require:
- file: symlink_minor_to_major_version
Expand Down

0 comments on commit 9988085

Please sign in to comment.