Create user 1000 only if not exists
This commit is contained in:
parent
11460c5f92
commit
4b7293f7f6
1 changed files with 8 additions and 2 deletions
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -54,8 +54,14 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
- name: Create user and group
|
||||
run: sudo useradd -u 1000 test
|
||||
- name: Check if user id 1000 exists
|
||||
run: |
|
||||
if [[ ! $(id -u 1000) -eq 1000 ]]; then
|
||||
echo "Creating user 1000"
|
||||
sudo useradd -u 1000 test
|
||||
fi
|
||||
id: check-user-id
|
||||
|
||||
|
||||
- name: Run install script
|
||||
run: sudo ./scripts/start.sh
|
||||
|
|
Loading…
Add table
Reference in a new issue