From 8d214d1a9105a9f0350e3d15cdd0d0d94940aefa Mon Sep 17 00:00:00 2001 From: Finn Date: Sat, 21 Aug 2021 15:16:43 +0200 Subject: [PATCH] added own docker-run.sh --- docker-run.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 docker-run.sh diff --git a/docker-run.sh b/docker-run.sh new file mode 100755 index 0000000..70afe93 --- /dev/null +++ b/docker-run.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +set -euo pipefail +IFS=$'\n\t' + +DIR="${0%/*}" +docker rm -f nextcloud +docker run -d --name=nextcloud -p 8080:80 -v "${PWD}:/var/www/html/custom_apps/upschooling" docker.io/nextcloud +docker exec nextcloud chown -R 33 /var/www/html/custom_apps +docker exec nextcloud chmod -R ug+rw /var/www/html/custom_apps +docker exec --user 33 nextcloud bash -c 'cd /var/www/html/custom_apps/upschooling && make' +docker exec --user 33 nextcloud php occ maintenance:install --database "sqlite" --admin-user "admin" --admin-pass "admin" +docker exec --user 33 nextcloud php occ config:system:set --value=true --type=boolean debug + +