summarylogtreecommitdiffstats
path: root/gnunet.install
diff options
context:
space:
mode:
authorgrufo2021-12-30 18:30:13 +0000
committergrufo2021-12-30 18:30:13 +0000
commit1c873557e9d87bdea19940ae0f001b7342550207 (patch)
treefa108e3e9abcb3c2ef6bfa97e0cb5c38f9f2645e /gnunet.install
parent74b577e0f8de6786248658857373af7877d75849 (diff)
downloadaur-1c873557e9d87bdea19940ae0f001b7342550207.tar.gz
gnunet.install: Updated messages
Diffstat (limited to 'gnunet.install')
-rw-r--r--gnunet.install26
1 files changed, 24 insertions, 2 deletions
diff --git a/gnunet.install b/gnunet.install
index 26160eccc0b9..2560926d8cbf 100644
--- a/gnunet.install
+++ b/gnunet.install
@@ -19,14 +19,36 @@ post_install() {
echo
echo 'Do not forget to add your user to the `gnunet` group, with'
echo
- echo ' sudo usermod -aG gnunet YOUR-USERNAME'
+ echo ' sudo usermod -aG gnunet "$(whoami)"'
echo
echo 'If later you want to remove your user from the group, launch'
echo
- echo ' sudo gpasswd --delete YOUR-USERNAME gnunet'
+ echo ' sudo gpasswd --delete "$(whoami)" gnunet'
echo
echo 'For information on how to use GNUnet plaese refer to the GNUnet article in the'
echo 'ArchWiki (https://wiki.archlinux.org/title/GNUnet).'
echo
}
+
+post_remove() {
+
+ echo
+ echo 'The home directory of the `gnunet` user (`/var/lib/gnunet/`) is left after'
+ echo 'uninstalling GNUnet. If you are sure that you are never going to use GNUnet'
+ echo 'ever again, launch:'
+ echo
+ echo ' for username in $(getent group gnunet | cut -d: -f4 | tr '\'','\'' '\'' '\''); do \'
+ echo ' sudo gpasswd --delete "${username}" gnunet; done'
+ echo ' sudo userdel -r gnunet'
+ echo ' sudo groupdel gnunetdns'
+ echo
+ echo '**Warning** The identity and all the information about the network'
+ echo 'cumulatively stored by the current peer will be destroyed - this will not'
+ echo 'affect files explicitly downloaded in other paths.'
+ echo
+ echo 'For further information plaese refer to the GNUnet article in the ArchWiki'
+ echo '(https://wiki.archlinux.org/title/GNUnet).'
+ echo
+
+}