From 1f1a23d19f93f7dedf02f23b5cc09c668fea88ff Mon Sep 17 00:00:00 2001 From: Piotr Cichosz Date: Sat, 25 May 2019 19:02:34 +0200 Subject: [PATCH] changed urls for my fork - for easier testing changed sed separator as suggested in https://github.com/the-paperless-project/paperless/pull/500#discussion_r257806300 --- docs/examples/lxc/lxc-install.sh | 10 +++++----- docs/setup.rst | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/examples/lxc/lxc-install.sh b/docs/examples/lxc/lxc-install.sh index 3788aa7e1..fa7a83a1e 100644 --- a/docs/examples/lxc/lxc-install.sh +++ b/docs/examples/lxc/lxc-install.sh @@ -6,7 +6,7 @@ # Will set-up paperless, apache2 and proftpd # # lxc launch ubuntu: paperless -# lxc exec paperless -- sh -c "wget https://raw.githubusercontent.com/danielquinn/paperless/master/scripts/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" # # @@ -41,7 +41,7 @@ systemctl restart proftpd #Get Paperless from git -su -c "cd /home/paperless ; git clone https://github.com/danielquinn/paperless" paperless +su -c "cd /home/paperless ; git clone https://github.com/maur/paperless" paperless # Install Pip Requirements apt-get -y install python3-pip python3-venv @@ -54,7 +54,7 @@ sed -e '/PAPERLESS_CONSUMPTION_DIR=/s/=.*/=\"\/home\/ftpupload\/\"/' \ # Update /etc/paperless.conf with PAPERLESS_SECRET_KEY SECRET=$(strings /dev/urandom | grep -o '[[:alnum:]]' | head -n 30 | tr -d '\n'; echo) -sed -i "s/#PAPERLESS_SECRET_KEY.*/PAPERLESS_SECRET_KEY=$SECRET/g" /etc/paperless.conf +sed -i "s/#PAPERLESS_SECRET_KEY.*/PAPERLESS_SECRET_KEY=$SECRET/" /etc/paperless.conf #Initialise the SQLite database su -c "cd /home/paperless/paperless/src/ ; ./manage.py migrate" paperless @@ -69,11 +69,11 @@ a2dissite 000-default.conf a2ensite paperless.conf systemctl reload apache2 -sed -e "s/home\/paperless\/project\/virtualenv\/bin\/python/usr\/bin\/python3/" \ +sed -e "s:home/paperless/project/virtualenv/bin/python:usr/bin/python3:" \ /home/paperless/paperless/scripts/paperless-consumer.service \ >/etc/systemd/system/paperless-consumer.service -sed -i "s/\/home\/paperless\/project\/src\/manage.py/\/home\/paperless\/paperless\/src\/manage.py/" \ +sed -i "s:/home/paperless/project/src/manage.py:/home/paperless/paperless/src/manage.py:" \ /etc/systemd/system/paperless-consumer.service diff --git a/docs/setup.rst b/docs/setup.rst index 3b17b12b0..0a0d78d70 100644 --- a/docs/setup.rst +++ b/docs/setup.rst @@ -522,7 +522,7 @@ if the above assumptions are acceptable. .. code:: bash - $ lxc exec paperless -- sh -c "wget https://raw.githubusercontent.com/danielquinn/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" The script will ask you for an ftpupload password. As well as the super-user for paperless web front-end.