mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 21:35:37 +00:00
add activationscript for jellyfin directory
This commit is contained in:
parent
da01f3be9b
commit
a9ae0c8858
@ -18,6 +18,18 @@
|
|||||||
upstreams = [{ dial = "localhost:8096"; }];
|
upstreams = [{ dial = "localhost:8096"; }];
|
||||||
}];
|
}];
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
# Create videos directory, allow anyone in Jellyfin group to manage it
|
||||||
|
system.activationScripts.jellyfin = let videosDirectory = "/var/videos";
|
||||||
|
in {
|
||||||
|
text = ''
|
||||||
|
if [ ! -d "${videosDirectory}" ]; then
|
||||||
|
$DRY_RUN_CMD mkdir --parents $VERBOSE_ARG ${videosDirectory}
|
||||||
|
$DRY_RUN_CMD chmod 775 $VERBOSE_ARG ${videosDirectory}
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user