Skip to content

Commit

Permalink
Add pgcat user (#546)
Browse files Browse the repository at this point in the history
* Add pgcat user

* warn

* dev
  • Loading branch information
levkk authored Aug 10, 2023
1 parent f94ce97 commit 4f0f45b
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-deb-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
packageVersion:
default: "1.1.1"
default: "1.1.2-dev"
jobs:
build:
strategy:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pgcat"
version = "1.1.1"
version = "1.1.2-dev"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
5 changes: 5 additions & 0 deletions postinst
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/bash
set -e

systemctl daemon-reload
systemctl enable pgcat

if ! id pgcat 2> /dev/null; then
useradd -s /usr/bin/false pgcat
fi
1 change: 1 addition & 0 deletions postrm
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
set -e

systemctl daemon-reload
1 change: 1 addition & 0 deletions prerm
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e

systemctl stop pgcat
systemctl disable pgcat
2 changes: 1 addition & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use postgres_protocol::message;
use std::collections::{BTreeSet, HashMap, HashSet};
use std::mem;
use std::net::IpAddr;
use std::sync::{Arc, Once};
use std::sync::Arc;
use std::time::SystemTime;
use tokio::io::{AsyncRead, AsyncReadExt, AsyncWrite, BufStream};
use tokio::net::TcpStream;
Expand Down

0 comments on commit 4f0f45b

Please sign in to comment.