From e98e48ec2c990f831906ff04362b328ed9f3901a Mon Sep 17 00:00:00 2001
From: Serhij S
Date: Sat, 6 Apr 2024 03:23:57 +0200
Subject: [PATCH] 0.2.4
---
Cargo.toml | 2 +-
make-deb/debian/postinst | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/Cargo.toml b/Cargo.toml
index e3d83c4..12bf9ef 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "psrt"
-version = "0.2.3"
+version = "0.2.4"
edition = "2021"
authors = ["Serhij S.
"]
license = "Apache-2.0"
diff --git a/make-deb/debian/postinst b/make-deb/debian/postinst
index 9c9f368..aba1bb5 100755
--- a/make-deb/debian/postinst
+++ b/make-deb/debian/postinst
@@ -10,6 +10,7 @@ touch /etc/psrtd/psrt-passwd
chmod 600 /etc/psrtd/psrt-passwd
chown psrt /etc/psrtd/psrt-passwd
systemctl enable psrtd
+if [ "$1" = "configure" ] && [ -z "$2" ]; then
cat << EOF
Service psrtd enabled
@@ -17,3 +18,6 @@ To start the server, execute
systemctl start psrtd
EOF
+elif [ "$1" = "configure" ] && [ -n "$2" ]; then
+ systemctl restart psrtd
+fi