Nextcloud-App/podman-reown.sh

11 lines
172 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"