From 941ea7f200d30d148a6c0db5c703494769d644b9 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sat, 28 Aug 2021 18:23:05 +0200 Subject: debian: various packaging fixes --- debian/gnunet.dirs | 1 - debian/gnunet.postinst | 28 ++-------------------------- debian/gnunet.templates | 25 +++---------------------- debian/rules | 6 ++++++ 4 files changed, 11 insertions(+), 49 deletions(-) diff --git a/debian/gnunet.dirs b/debian/gnunet.dirs index 1e2a7d4c0..e6da73664 100644 --- a/debian/gnunet.dirs +++ b/debian/gnunet.dirs @@ -1,2 +1 @@ var/lib/gnunet -var/log/gnunetd diff --git a/debian/gnunet.postinst b/debian/gnunet.postinst index d625ccfb6..bde8b1462 100644 --- a/debian/gnunet.postinst +++ b/debian/gnunet.postinst @@ -42,11 +42,8 @@ case "${1}" in configure) db_version 2.0 - db_get gnunet-systempeer/username - _USERNAME="${RET:-gnunet}" - - db_get gnunet-systempeer/groupname - _GROUPNAME="${RET:-gnunet}" + _USERNAME="gnunet" + _GROUPNAME="gnunet" db_get gnunet-systempeer/autostart _AUTOSTART="${RET}" # boolean @@ -169,8 +166,6 @@ case "${1}" in # Update files and directories permissions. # Assuming default values, this *should* not be changed. echo -n "Updating files and directories permissions:" - chown ${_USERNAME}:${_GROUPNAME} /var/log/gnunetd - chown ${_USERNAME}:${_GROUPNAME} /var/log/gnunetd/* # Secure access to the data directory chmod 0700 "${GNUNET_HOME}" || true # Restrict access on setuid binaries @@ -202,25 +197,6 @@ case "${1}" in fi echo " done." - # Writing new values to configuration file - echo -n "Writing new configuration file:" - CONFIG_NEW=$(tempfile) - -cat > "${CONFIG_NEW}" <