Nextcloud-App/podman-reown.sh

12 lines
173 B
Bash
Executable file

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