Update podman configuration runners

This commit is contained in:
Ben 2021-08-21 14:41:50 +02:00
parent d8ec284f53
commit fb5cfff56e
Signed by: ben
GPG key ID: 0F54A7ED232D3319
2 changed files with 14 additions and 4 deletions

11
podman-reown.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
DIR="${0%/*}"
podman unshare -- chown -R 33 "$DIR"
podman unshare -- chgrp -R 0 "$DIR"
podman unshare -- chmod -R ug+rw "$DIR"

View file

@ -6,7 +6,6 @@ IFS=$'\n\t'
DIR="${0%/*}" DIR="${0%/*}"
podman run -d --name=nextcloud --replace=true -p 8080:80 -v "$DIR:/var/www/html/custom_apps/upschooling" docker.io/nextcloud podman run -d --name=nextcloud --replace=true -p 8080:80 -v "$DIR:/var/www/html/custom_apps/upschooling" docker.io/nextcloud
podman exec nextcloud chown 33 /var/www/html/custom_apps podman exec nextcloud chown -R 33 /var/www/html/custom_apps
podman unshare chown -R 33 -R "$DIR" "$DIR/podman-reown.sh"
podman unshare chmod -R ug+rw "$DIR" podman exec --user 33 nextcloud bash -c 'cd /var/www/html/custom_apps/upschooling && make'