Add podman-run.sh script

This commit is contained in:
Ben 2021-08-21 14:08:36 +02:00
parent 329a78d867
commit a86acabb15
Signed by: ben
GPG Key ID: 0F54A7ED232D3319
1 changed files with 12 additions and 0 deletions

12
podman-run.sh Executable file
View File

@ -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"