From a86acabb156cb0829c6393f9beed77b89ddf165e Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Sat, 21 Aug 2021 14:08:36 +0200 Subject: [PATCH] Add podman-run.sh script --- podman-run.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 podman-run.sh diff --git a/podman-run.sh b/podman-run.sh new file mode 100755 index 0000000..b1b7e5e --- /dev/null +++ b/podman-run.sh @@ -0,0 +1,12 @@ +#!/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 +podman exec nextcloud chown 33 /var/www/html/custom_apps +podman unshare chown -R 33 -R "$DIR" +podman unshare chmod -R ug+rw "$DIR" +