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 ''; };