|
@@ -0,0 +1,32 @@
|
|
1
|
+#!/usr/bin/bash
|
|
2
|
+. bash_library.sh # source bash_library.sh
|
|
3
|
+
|
|
4
|
+log "install base debian-packaged-dep for backend..."
|
|
5
|
+sudo apt update
|
|
6
|
+sudo apt install python3 python3-venv python3-dev python3-pip
|
|
7
|
+sudo apt install redis-server
|
|
8
|
+
|
|
9
|
+log "install deps for dealing with most preview..."
|
|
10
|
+sudo apt install zlib1g-dev libjpeg-dev
|
|
11
|
+sudo apt install imagemagick libmagickwand-dev ghostscript
|
|
12
|
+sudo apt install libreoffice # most office documents file and text format
|
|
13
|
+sudo apt install inkscape # for .svg files.
|
|
14
|
+
|
|
15
|
+log "go to backend subdir.."
|
|
16
|
+cd backend || exit 1;
|
|
17
|
+
|
|
18
|
+log "setup python3 env.."
|
|
19
|
+python3 -m venv env
|
|
20
|
+source env/bin/activate
|
|
21
|
+pip install --upgrade pip setuptools
|
|
22
|
+
|
|
23
|
+log "install tracim-backend (sqlite_backend)..."
|
|
24
|
+pip install -e ".[testing]"
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+log "configure tracim with default conf..."
|
|
28
|
+cp development.ini.sample development.ini
|
|
29
|
+cp wsgidav.conf.sample wsgidav.conf
|
|
30
|
+tracimcli db init
|
|
31
|
+
|
|
32
|
+log "backend of tracim was correctly set-up."
|