nixos/airsonic: remove full-path commands from preStart

systemd services are initialised with a default PATH.
This path includes coreutils.
This commit is contained in:
Jörg Thalheim 2017-08-25 23:05:51 +01:00
parent 6905e59e25
commit 3ba09a8e2c

View File

@ -84,10 +84,10 @@ in {
preStart = ''
# Install transcoders.
${pkgs.coreutils}/bin/rm -rf ${cfg.home}/transcode
${pkgs.coreutils}/bin/mkdir -p ${cfg.home}/transcode
rm -rf ${cfg.home}/transcode
mkdir -p ${cfg.home}/transcode
for exe in ${toString cfg.transcoders}; do
${pkgs.coreutils}/bin/ln -sf "$exe" ${cfg.home}/transcode
ln -sf "$exe" ${cfg.home}/transcode
done
'';
serviceConfig = {