Compare commits

...

2 Commits

Author SHA1 Message Date
Ben b86a159faa
Add .gitignore for .idea and build 2021-08-21 14:09:49 +02:00
Ben a86acabb15
Add podman-run.sh script 2021-08-21 14:09:49 +02:00
2 changed files with 14 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
/.idea
/build

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"