mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
check if lxc-install executed as root
This commit is contained in:
parent
cd3e8f7f8a
commit
467bb013e2
@ -55,6 +55,10 @@ if [ -z $EMAIL ]; then
|
|||||||
echo "missing email, try running with -h "
|
echo "missing email, try running with -h "
|
||||||
exit 3
|
exit 3
|
||||||
fi
|
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
|
if [ $(grep -c paperless /etc/passwd) -eq 0 ]; then
|
||||||
# Add paperless user with no password
|
# Add paperless user with no password
|
||||||
|
@ -522,7 +522,7 @@ if the above assumptions are acceptable.
|
|||||||
|
|
||||||
.. code:: bash
|
.. code:: bash
|
||||||
|
|
||||||
$ lxc exec paperless -- sh -c "wget https://raw.githubusercontent.com/maur/paperless/master/docs/examples/lxc/lxc-install.sh && /bin/bash lxc-install.sh"
|
$ lxc exec paperless -- sh -c "wget https://raw.githubusercontent.com/maur/paperless/master/docs/examples/lxc/lxc-install.sh && /bin/bash lxc-install.sh --email"
|
||||||
|
|
||||||
The script will ask you for an ftpupload password.
|
The script will ask you for an ftpupload password.
|
||||||
As well as the super-user for paperless web front-end.
|
As well as the super-user for paperless web front-end.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user