20 lines
434 B
Plaintext
20 lines
434 B
Plaintext
|
#! /bin/sh
|
||
|
|
||
|
exec 2>&1
|
||
|
|
||
|
image=nextcloud
|
||
|
[ -f upgrade ] && podman pull $image && rm upgrade
|
||
|
|
||
|
me=$(basename $(pwd))
|
||
|
podman rm -f $me
|
||
|
podman run \
|
||
|
--name $me \
|
||
|
--network homelab \
|
||
|
--memory 2g \
|
||
|
--volume /srv/sys/nextcloud:/var/www/html \
|
||
|
--volume /srv/storage:/srv/storage \
|
||
|
--volume /srv/media:/srv/media \
|
||
|
--volume /srv/incoming:/srv/incoming \
|
||
|
--volume /srv/sys/nextcloud/bin/ffmpeg:/usr/local/bin/ffmpeg:ro \
|
||
|
$image
|