Only try to create user if not present.
This commit is contained in:
parent
7f54d2971f
commit
eaa62ad5a1
|
@ -64,7 +64,9 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set permissions to searx directory
|
# Set permissions to searx directory
|
||||||
sudo useradd searx -d $final_path
|
if ! id -u searx > /dev/null 2>&1; then
|
||||||
|
sudo useradd searx -d $final_path
|
||||||
|
fi
|
||||||
sudo chown searx:searx -R $final_path
|
sudo chown searx:searx -R $final_path
|
||||||
|
|
||||||
# Copy uwsgi config
|
# Copy uwsgi config
|
||||||
|
|
Loading…
Reference in New Issue