Skip to content

Commit

Permalink
Set xrnd nixos user to root for upgrade support, upgrade lib/pq
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronc committed Apr 18, 2019
1 parent 30dd361 commit baff9a5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let

src = ./.;

modSha256 = "0vhif5khib1hsnr540whqvi41aznnk24haq8252d6qglf2jjy01z";
modSha256 = "1pgjz6w70sl6b8kf8vdby5mv80vgjn1n66xqgwy9b73h85ck5spm";

meta = with stdenv.lib; {
description = "Distributed ledger for planetary regeneration";
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/gogo/protobuf v1.2.1 // indirect
github.com/gorilla/mux v1.7.0
github.com/leanovate/gopter v0.2.4
github.com/lib/pq v1.0.0
github.com/lib/pq v1.1.0
github.com/mattn/go-isatty v0.0.7 // indirect
github.com/onsi/ginkgo v1.8.0 // indirect
github.com/onsi/gomega v1.5.0 // indirect
Expand Down
6 changes: 2 additions & 4 deletions module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ in
POSTGRES_INDEX_URL = if xrndCfg.enablePostgres then "host=/tmp user=xrnd dbname=xrn sslmode=disable" else xrndCfg.postgresUrl;
};
serviceConfig = {
User = "xrnd";
Group = "xrn";
PermissionsStartOnly = true;
User = "root";
};
};
})
Expand Down Expand Up @@ -147,7 +145,7 @@ in
initialScript = pkgs.writeText "backend-initScript" ''
CREATE USER xrnd;
CREATE DATABASE xrn;
CREATE EXTENSIOn postgis;
CREATE EXTENSION postgis;
GRANT ALL PRIVILEGES ON DATABASE xrn TO xrnd;
CREATE USER guest;
GRANT SELECT ON ALL TABLES IN SCHEMA public to PUBLIC;
Expand Down

0 comments on commit baff9a5

Please sign in to comment.