2021-08-21 12:41:50 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
IFS=$'\n\t'
|
|
|
|
|
|
|
|
DIR="${0%/*}"
|
|
|
|
|
2021-10-08 15:02:19 +00:00
|
|
|
if [ $(id -u) -eq 0 ];then
|
|
|
|
podman exec nextcloud chown -R 33 /var/www/html/custom_apps
|
|
|
|
podman exec nextcloud chmod -R ug+rw /var/www/html/custom_apps
|
|
|
|
else
|
|
|
|
podman unshare -- chown -R 33 "$DIR"
|
|
|
|
podman unshare -- chgrp -R 0 "$DIR"
|
|
|
|
podman unshare -- chmod -R ug+rw "$DIR"
|
|
|
|
fi
|