From c4244c7aa3e37a1aa2837566260a14737f277663 Mon Sep 17 00:00:00 2001 From: Robert Schütz Date: Wed, 6 Sep 2023 12:00:20 -0700 Subject: plausible: 1.5.1 -> 2.0.0 Changelog: https://github.com/plausible/analytics/blob/v2.0.0/CHANGELOG.md Co-authored-by: Kirill Radzikhovskyy --- nixos/modules/services/web-apps/plausible.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'nixos/modules/services') diff --git a/nixos/modules/services/web-apps/plausible.nix b/nixos/modules/services/web-apps/plausible.nix index 4b308d2ee56..e2d5cdc4f7c 100644 --- a/nixos/modules/services/web-apps/plausible.nix +++ b/nixos/modules/services/web-apps/plausible.nix @@ -248,11 +248,10 @@ in { # setup ${cfg.package}/createdb.sh ${cfg.package}/migrate.sh + export IP_GEOLOCATION_DB=${pkgs.dbip-country-lite}/share/dbip/dbip-country-lite.mmdb ${cfg.package}/bin/plausible eval "(Plausible.Release.prepare() ; Plausible.Auth.create_user(\"$ADMIN_USER_NAME\", \"$ADMIN_USER_EMAIL\", \"$ADMIN_USER_PWD\"))" ${optionalString cfg.adminUser.activate '' - if ! ${cfg.package}/init-admin.sh | grep 'already exists'; then - psql -d plausible <<< "UPDATE users SET email_verified=true;" - fi + psql -d plausible <<< "UPDATE users SET email_verified=true where email = '$ADMIN_USER_EMAIL';" ''} exec plausible start -- cgit 1.4.1