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:
parent
6905e59e25
commit
3ba09a8e2c
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user