Compare commits
1 commit
c262ad2900
...
bd0221e36c
Author | SHA1 | Date | |
---|---|---|---|
Félix Baylac-Jacqué | bd0221e36c |
|
@ -72,15 +72,13 @@ in {
|
|||
# It's sub-optimal as we'll always run this, even if pleroma
|
||||
# has not been updated. But the no-op process is pretty fast.
|
||||
# Better be safe than sorry migration-wise.
|
||||
ExecStartPre =
|
||||
let preScript = pkgs.writers.writeBashBin "pleromaStartPre" ''
|
||||
if [ ! -f "/etc/pleroma/config.exs" ]; then
|
||||
echo "ERROR: Missing pleroma config file at /etc/pleroma/config.exs"
|
||||
echo "Did you read https://git.alternativebit.fr/NinjaTrappeur/pleroma-otp-nixos/src/branch/master/readme.md#user-content-pleroma-configuration-management ?"
|
||||
exit 1
|
||||
fi
|
||||
${cfg.package}/bin/pleroma_ctl migrate'';
|
||||
in "${preScript}/bin/pleromaStartPre";
|
||||
ExecStartPre = pkgs.writers.writeBashBin "pleromaStartPre" ''
|
||||
if [ ! -f "/etc/pleroma/config.exs" ]; then
|
||||
echo "ERROR: Missing pleroma config file at /etc/pleroma/config.exs"
|
||||
echo "Did you read https://git.alternativebit.fr/NinjaTrappeur/pleroma-otp-nixos/src/branch/master/readme.md#user-content-pleroma-configuration-management ?"
|
||||
exit 1
|
||||
fi
|
||||
${cfg.package}/bin/pleroma_ctl migrate'';
|
||||
|
||||
ExecStart = "${cfg.package}/bin/pleroma daemon";
|
||||
ExecStop = "${cfg.package}/bin/pleroma stop";
|
||||
|
|
Loading…
Reference in a new issue