Answer by dessert for Using scripts to add GPG Keys and Repository Lists
sudo is a command one normally doesn’t use in scripts (see How do I run a 'sudo' command inside a script?), you rather run the whole script as root. Your script would then be #!/bin/bash wget -qO -...
View ArticleUsing scripts to add GPG Keys and Repository Lists
I am in need of installing elasticstack on multiple systems currently and would like to invoke this via bash script. Two of the steps to installing elasticsearch is to add the GPG Key and then create...
View Article
More Pages to Explore .....