From c4848e9a22a53d1efe472287ebc90f0ad6986d44 Mon Sep 17 00:00:00 2001 From: Pyromane Date: Tue, 5 May 2020 21:58:21 +0200 Subject: [PATCH] Update lxc-install.sh --- docs/examples/lxc/lxc-install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/examples/lxc/lxc-install.sh b/docs/examples/lxc/lxc-install.sh index 41ce375af..b53858e3a 100644 --- a/docs/examples/lxc/lxc-install.sh +++ b/docs/examples/lxc/lxc-install.sh @@ -89,9 +89,11 @@ apt-get -y install unpaper gnupg libpoppler-cpp-dev python3-pyocr tesseract-ocr # Needed for Apache apt-get -y install apache2 libapache2-mod-wsgi-py3 -if [ ! -f /etc/proftpd/proftpd.conf -o $(grep -c paperless /etc/proftpd/proftpd.conf) -eq 0 ]; then +if [ ! -f /etc/proftpd/proftpd.conf ]; then # Install ftp server and make sure all uplaoded files are owned by paperless apt-get -y install proftpd +fi +if [ $(grep -c paperless /etc/proftpd/proftpd.conf) -eq 0 ]; then cat <> /etc/proftpd/proftpd.conf UserOwner paperless