From 81d2078cdb938fd467bded1d80e8fdd0ae0173c6 Mon Sep 17 00:00:00 2001
From: strawberry <strawberry@puppygock.gay>
Date: Wed, 15 May 2024 11:45:35 -0400
Subject: [PATCH] debian: dont start service immediately, add postinst
 instructions

Signed-off-by: strawberry <strawberry@puppygock.gay>
---
 Cargo.toml      | 2 +-
 debian/postinst | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/Cargo.toml b/Cargo.toml
index 9a4f40fd6..d084a7974 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -460,7 +460,7 @@ assets = [
 ]
 conf-files = ["/etc/conduwuit/conduwuit.toml"]
 maintainer-scripts = "debian/"
-systemd-units = { unit-name = "conduwuit" }
+systemd-units = { unit-name = "conduwuit", start = false }
 
 
 [profile.dev]
diff --git a/debian/postinst b/debian/postinst
index e2eab94be..9383bbacb 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -31,6 +31,11 @@ case "$1" in
 
     chmod -v 740 "$CONDUWUIT_DATABASE_PATH"
 
+    echo ''
+    echo 'Make sure you edit the example config at /etc/conduwuit/conduwuit.toml before starting!'
+    echo 'To start the server, run: systemctl start conduwuit.service'
+    echo ''
+
     ;;
 esac
 
-- 
GitLab