Only run AppArmor command if Ubuntu 24
This commit is contained in:
parent
d27cd840f9
commit
f44017c6cd
4
.github/actions/run-test/action.yml
vendored
4
.github/actions/run-test/action.yml
vendored
|
|
@ -39,7 +39,9 @@ runs:
|
||||||
- name: Setup Ubuntu Electron
|
- name: Setup Ubuntu Electron
|
||||||
if: ${{ runner.os == 'Linux' }}
|
if: ${{ runner.os == 'Linux' }}
|
||||||
run: |
|
run: |
|
||||||
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
|
if grep -q "Ubuntu 24" /etc/os-release; then
|
||||||
|
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
|
||||||
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
- run: |
|
- run: |
|
||||||
echo "::group::npm ci"
|
echo "::group::npm ci"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue