From dddd04518a2f6b57ce798e6c47227638f82be84c Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Mon, 19 Sep 2022 23:41:10 +0200 Subject: [PATCH] wip Signed-off-by: Magic_RB --- containers/mautrix-facebook.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/containers/mautrix-facebook.nix b/containers/mautrix-facebook.nix index d45ead5..4817f95 100644 --- a/containers/mautrix-facebook.nix +++ b/containers/mautrix-facebook.nix @@ -27,7 +27,8 @@ nglib.makeSystem { cp ${config} "$CONFIG_FILE" ; chmod 755 "$CONFIG_FILE" ${pkgs.sqlite}/bin/sqlite3 $DB_FILE '.databases ; .quit' - ${pkgs.mautrix-facebook}/bin/mautrix-facebook -c "$CONFIG_FILE" -r "$REGISTRATION_FILE" -g + [ -e "$REGISTRATION_FILE" ] || \ + ${pkgs.mautrix-facebook}/bin/mautrix-facebook -c "$CONFIG_FILE" -r "$REGISTRATION_FILE" -g ${pkgs.mautrix-facebook}/bin/mautrix-facebook -c "$CONFIG_FILE" -r "$REGISTRATION_FILE" -n ''; };