fix: sometimes we need path
This commit is contained in:
parent
6c68e7a505
commit
35676b4891
1 changed files with 6 additions and 1 deletions
|
@ -1,6 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
if ! cat -q "automation" /etc/passwd; then
|
||||
if ! cat "$PATH" | grep -q "sbin"; then
|
||||
# sudo is quirky
|
||||
PATH="$PATH:/sbin"
|
||||
fi
|
||||
|
||||
if ! grep -q "automation" /etc/passwd; then
|
||||
echo "setting up automation user..."
|
||||
useradd -m automation
|
||||
|
||||
|
|
Loading…
Reference in a new issue