feat(mediabox): cache storage

This commit is contained in:
arcnmx 2024-02-23 13:52:00 -08:00
parent 4c07a6ed1b
commit cb9acfbdde
5 changed files with 40 additions and 9 deletions

View file

@ -3,6 +3,7 @@
"lxc.mount.entry": [
"/mnt/kyuuto-media/library mnt/kyuuto-media/library none bind,optional,create=dir",
"/mnt/kyuuto-media/downloads/deluge mnt/kyuuto-media/downloads/deluge none bind,optional,create=dir",
"/rpool/caches/plex mnt/caches/plex none bind,optional,create=dir",
"/dev/dri/renderD128 dev/dri/renderD128 none bind,optional,create=file"
],
"lxc.idmap": [

View file

@ -109,3 +109,20 @@ if [[ ! -d /rpool/shared/nix/var ]]; then
mkdir /rpool/shared/nix/var
fi
chown 100000:100000 /rpool/shared/nix/var
if [[ ! -d /rpool/caches ]]; then
zfs create rpool/caches
fi
if [[ ! -d /rpool/caches/plex ]]; then
zfs create rpool/caches/plex
fi
if [[ ! -d /rpool/caches/plex/Cache ]]; then
mkdir /rpool/caches/plex/Cache
fi
if [[ ! -d /rpool/caches/plex/tautulli/cache ]]; then
mkdir -p /rpool/caches/plex/tautulli/cache
fi
chown 100193:100193 /rpool/caches/plex/Cache
chmod 0775 /rpool/caches/plex/Cache
chown 100195:65534 /rpool/caches/plex/tautulli/cache
chmod 0755 /rpool/caches/plex/tautulli/cache