mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 16:25:33 +01:00
check if lxc-install executed as root
This commit is contained in:
parent
cd3e8f7f8a
commit
467bb013e2
2 changed files with 5 additions and 1 deletions
|
|
@ -55,6 +55,10 @@ if [ -z $EMAIL ]; then
|
|||
echo "missing email, try running with -h "
|
||||
exit 3
|
||||
fi
|
||||
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
|
||||
echo "Not running as root"
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ $(grep -c paperless /etc/passwd) -eq 0 ]; then
|
||||
# Add paperless user with no password
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue