Nextcloud-App/podman-run.sh
2021-08-21 14:09:49 +02:00

13 lines
316 B
Bash
Executable file

#!/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"