Add podman-run.sh script
This commit is contained in:
parent
329a78d867
commit
a86acabb15
12
podman-run.sh
Executable file
12
podman-run.sh
Executable 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"
|
||||||
|
|
Loading…
Reference in a new issue