Skip to content

Commit

Permalink
CI: Fedora doesn't have all adduser options
Browse files Browse the repository at this point in the history
  • Loading branch information
grass committed Aug 10, 2023
1 parent 73c536b commit 6808ee6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/builds.yml
Expand Up @@ -56,7 +56,11 @@ jobs:
run: cat /etc/os-release; uname -a; echo "${PATH}"; cat /etc/sudoers; ls /etc/sudoers.d;
- name: Normal user with sudo privileges
run: |
adduser --gecos "" --disabled-password user
if test -f /etc/debian_version; then
adduser --gecos "" --disabled-password user
else
adduser user
fi
usermod -aG sudo user
echo "%sudo ALL=(ALL) NOPASSWD: ALL" | tee /etc/sudoers.d/user
- name: Run Installer
Expand Down

0 comments on commit 6808ee6

Please sign in to comment.