From fb5cfff56e4f499a0ba2c793a4b010ff132a32d6 Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Sat, 21 Aug 2021 14:41:50 +0200 Subject: [PATCH] Update podman configuration runners --- podman-reown.sh | 11 +++++++++++ podman-run.sh | 7 +++---- 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100755 podman-reown.sh diff --git a/podman-reown.sh b/podman-reown.sh new file mode 100755 index 0000000..501f99a --- /dev/null +++ b/podman-reown.sh @@ -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" + diff --git a/podman-run.sh b/podman-run.sh index b1b7e5e..2ca964f 100755 --- a/podman-run.sh +++ b/podman-run.sh @@ -6,7 +6,6 @@ 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 -podman exec nextcloud chown 33 /var/www/html/custom_apps -podman unshare chown -R 33 -R "$DIR" -podman unshare chmod -R ug+rw "$DIR" - +podman exec nextcloud chown -R 33 /var/www/html/custom_apps +"$DIR/podman-reown.sh" +podman exec --user 33 nextcloud bash -c 'cd /var/www/html/custom_apps/upschooling && make'