From f6e66fecc3dc3c68a51e75a1b965a4b0517cce32 Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Mon, 19 Sep 2022 15:46:48 +0200 Subject: [PATCH] wip!!!!!!!!! Signed-off-by: Magic_RB --- containers/mautrix-facebook.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/containers/mautrix-facebook.nix b/containers/mautrix-facebook.nix index c4cfa6e..c10ee37 100644 --- a/containers/mautrix-facebook.nix +++ b/containers/mautrix-facebook.nix @@ -24,8 +24,9 @@ nglib.makeSystem { DB_FILE="$DATA_DIR/sqlite.db" 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 $NOMAD_ALLOC_DIR/registration.yaml -g - ${pkgs.mautrix-facebook}/bin/mautrix-facebook -c "$CONFIG_FILE" -n + [ -e -r $NOMAD_ALLOC_DIR/registration.yaml ] || \ + ${pkgs.mautrix-facebook}/bin/mautrix-facebook -c "$CONFIG_FILE" -r $NOMAD_ALLOC_DIR/registration.yaml -g + ${pkgs.mautrix-facebook}/bin/mautrix-facebook -c "$CONFIG_FILE" -r $NOMAD_ALLOC_DIR/registration.yaml -n ''; }; });