From f39d52f7b42ccc891cd7391ae27fcbc88aa119fb Mon Sep 17 00:00:00 2001 From: Louis Maillard Date: Wed, 23 Oct 2024 09:59:16 -0400 Subject: [PATCH] packaging: clean post-install script Cleaned all the dead code in debian/ubuntu post install script. Change-Id: Idb23b5974e544d704ee9feb753990bf185575ec5 --- extras/packaging/gnu-linux/debian/postinst | 27 ---------------------- 1 file changed, 27 deletions(-) diff --git a/extras/packaging/gnu-linux/debian/postinst b/extras/packaging/gnu-linux/debian/postinst index aeb8833e..28852b2c 100644 --- a/extras/packaging/gnu-linux/debian/postinst +++ b/extras/packaging/gnu-linux/debian/postinst @@ -5,11 +5,7 @@ umask 022 main() { mkdir -p /etc/dhtnet - # disabled because is shouldn't create key on behalf of user: - # create_key_pair_if_not_exist() - # disabled because we now use systemd preset system to disabled by default: - # disable_dnc_service echo "====================" echo "dnc server installed." echo "To configure your dnc client and/or server, run:" @@ -21,27 +17,4 @@ main() { echo "====================" } -# reload_dnc_service() { -# status=$(systemctl is-active dnc.service || true) -# if [ "$status" = "failed" ]; then -# echo "dnc.service failed to start, try a restart after keys was created..." -# systemctl restart dnc.service -# fi -# } - -# disable_dnc_service() { -# systemctl stop dnc.service -# systemctl disable dnc.service -# } - -# create_key_pair_if_not_exist() { -# mkdir -p /etc/dhtnet/id -# mkdir -p /etc/dhtnet/CA -# if [ ! -f /etc/dhtnet/id/id-server.crt ] && [ ! -f /etc/dhtnet/id/id-server.pem ]; then -# echo "Generating server keys..." -# dhtnet-crtmgr --setup -o /etc/dhtnet/ -# dhtnet-crtmgr -a -c /etc/dhtnet/id/id-server.crt -p /etc/dhtnet/id/id-server.pem -# fi -# } - main