Skip to content

Commit

Permalink
packaging: clean post-install script
Browse files Browse the repository at this point in the history
Cleaned all the dead code in debian/ubuntu post install script.

Change-Id: Idb23b5974e544d704ee9feb753990bf185575ec5
  • Loading branch information
loulou123546 committed Oct 24, 2024
1 parent ea0ddeb commit f39d52f
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions extras/packaging/gnu-linux/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
Expand All @@ -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

0 comments on commit f39d52f

Please sign in to comment.