aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure15
-rwxr-xr-xdatabase/init_db.sh2
2 files changed, 15 insertions, 2 deletions
diff --git a/configure b/configure
index 339b91d..9520d8d 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,19 @@
+sudo apt-get install nodejs npm python3 python3-venv python3-pip make gcc sqlite3 nginx
+
npm i -g typescript yarn
+yarn
+
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
-yarn
+
+cd database
+sh init_db.sh
+cd ..
+
+cd voerbak
+make
+cd ..
+
+sed "s/user nobody/user $(whoami)/" -i ./nginx.conf
diff --git a/database/init_db.sh b/database/init_db.sh
index 0c5515b..4dd7b99 100755
--- a/database/init_db.sh
+++ b/database/init_db.sh
@@ -1 +1 @@
-sqlite3 database.db < init_db.sql
+sqlite3 database.db < ./init_db.sql