]> git.corax.cc Git - toolbox/commitdiff
README: Don't use apt-key in installation instructions
authorMatthias Kruk <m@m10k.eu>
Sun, 9 Oct 2022 03:25:01 +0000 (12:25 +0900)
committerMatthias Kruk <m@m10k.eu>
Sun, 9 Oct 2022 03:25:01 +0000 (12:25 +0900)
The installation instructions for Debian-based distros use apt-key
to add the repository's GPG key, however apt-key is deprecated.

This commit changes the instructions to use /etc/apt/trusted.gpg.d
instead of apt-key.

README.md

index 500ca24a01f41476e1c6d3b8e33975d766cc2ad5..adc3d488c41e38c748412adb94d277bc07ee3392 100644 (file)
--- a/README.md
+++ b/README.md
@@ -23,7 +23,7 @@ minimal publisher using the *ipc* module.
 
     . toolbox.sh
     include "ipc"
-    
+
     endp=$(ipc_endpoint_open)
     ipc_endpoint_publish "$endp" "mytopic" "Hello world"
 
@@ -31,13 +31,13 @@ And this is the corresponding subscriber.
 
     . toolbox.sh
     include "ipc"
-    
+
     endp=$(ipc_endpoint_open)
     ipc_endpoint_subscribe "$endp" "mytopic"
-    
+
     if msg=$(ipc_endpoint_recv "$endp"); then
        data=$(ipc_msg_get_data "$msg")
-    
+
        echo "Received message: $data"
     fi
 
@@ -76,7 +76,7 @@ If you are using a Debian-based distribution, you can install toolbox through ap
 First, import the GPG key used to sign packages in the repository and make sure you
 have `apt-transport-https` installed.
 
-    # wget -O - -- https://deb.m10k.eu/deb.m10k.eu.gpg.key | apt-key add -
+    # curl --get https://deb.m10k.eu/deb.m10k.eu.gpg > /etc/apt/trusted.gpg.d/deb.m10k.eu.gpg
     # apt-get install apt-transport-https
 
 Then add the following line to your `/etc/apt/sources.lst`.