fix: sometimes we need path

This commit is contained in:
Strix 2023-10-30 01:03:25 +01:00
parent 6c68e7a505
commit 35676b4891
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774

View file

@ -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