[WIP] new seqs
This commit is contained in:
29
seqs/paperless.sh
Executable file
29
seqs/paperless.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
step_1_info() { echo "Install python3"; }
|
||||
step_1() {
|
||||
exe apt update
|
||||
exe apt install python3 python3-pip
|
||||
}
|
||||
|
||||
step_2_info() { echo "Get paperless using git (checkout 2.7.0)"; }
|
||||
step_2() {
|
||||
exe git clone https://github.com/the-paperless-project/paperless.git /opt/paperless
|
||||
exe cd /opt/paperless && git checkout 2.7.0
|
||||
}
|
||||
|
||||
step_3_info() { echo "Install other dependcies"; }
|
||||
step_3() {
|
||||
exe apt install gnupg tesseract-ocr tesseract-ocr-deu imagemagick unpaper libpoppler-cpp-dev optipng
|
||||
exe pip3 install --user --requirement /opt/paperless/requirements.txt
|
||||
}
|
||||
|
||||
step_4_info() { echo "Paperless configuration file"; }
|
||||
step_4() {
|
||||
if [ ! -f /etc/paperless.conf ] ; then
|
||||
cp -ar paperless.conf.example /etc/paperless.conf
|
||||
else
|
||||
echo "[ WARN ] Configuration already exists. Doing nothing"
|
||||
fi
|
||||
}
|
||||
. sequencer.sh
|
Reference in New Issue
Block a user