2021-08-21 12:08:36 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
IFS=$'\n\t'
|
|
|
|
|
|
|
|
DIR="${0%/*}"
|
|
|
|
|
|
|
|
podman run -d --name=nextcloud --replace=true -p 8080:80 -v "$DIR:/var/www/html/custom_apps/upschooling" docker.io/nextcloud
|
2021-08-21 12:41:50 +00:00
|
|
|
podman exec nextcloud chown -R 33 /var/www/html/custom_apps
|
|
|
|
"$DIR/podman-reown.sh"
|
2021-08-21 14:25:23 +00:00
|
|
|
podman exec --user 33 nextcloud bash -c 'cd /var/www/html/custom_apps/upschooling && make composer'
|
2021-08-21 13:20:15 +00:00
|
|
|
podman exec --user 33 nextcloud php occ maintenance:install --database sqlite --admin-user admin --admin-pass admin
|
2021-08-21 12:59:18 +00:00
|
|
|
podman exec --user 33 nextcloud php occ config:system:set --value=true --type=boolean debug
|
2021-08-21 13:20:15 +00:00
|
|
|
podman exec --user 33 nextcloud php occ app:enable --force upschooling
|