Skip to content

Commit

Permalink
peertube: startup script: exec into nodejs (#352005)
Browse files Browse the repository at this point in the history
  • Loading branch information
Atemu authored Oct 30, 2024
2 parents 0dff984 + 1eb6cc1 commit 8336127
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nixos/modules/services/web-apps/peertube.nix
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,6 @@ in {
path = with pkgs; [ nodejs_18 yarn ffmpeg-headless openssl ];

script = ''
#!/bin/sh
umask 077
cat > /var/lib/peertube/config/local.yaml <<EOF
${lib.optionalString (cfg.secrets.secretsFile != null) ''
Expand All @@ -457,7 +456,7 @@ in {
ln -sf ${cfg.package}/config/default.yaml /var/lib/peertube/config/default.yaml
ln -sf ${cfg.package}/client/dist -T /var/lib/peertube/www/client
ln -sf ${cfg.settings.storage.client_overrides} -T /var/lib/peertube/www/client-overrides
node dist/server
exec node dist/server
'';
serviceConfig = {
Type = "simple";
Expand Down

0 comments on commit 8336127

Please sign in to comment.