From fe9de0043d7f9b04b39c18f1b6b3a6918726bd6c Mon Sep 17 00:00:00 2001 From: andrewwebster-hso <112995392+andrewwebster-hso@users.noreply.github.com> Date: Mon, 17 Apr 2023 23:28:21 +1000 Subject: [PATCH 1/2] updates --- setup2.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup2.sh b/setup2.sh index f57f689..f66a00a 100644 --- a/setup2.sh +++ b/setup2.sh @@ -28,6 +28,9 @@ if [ -f /sbin/apk ] ; then apk add sudo fi +#3 ed + + # Enable sudo for all users - by modifying /etc/sudoers if ! (grep NOPASSWD:ALL /etc/sudoers ) ; then # Everyone From 7ac935f52ec84af25c28ac447a218ba2b9f527a1 Mon Sep 17 00:00:00 2001 From: andrewwebster-hso <112995392+andrewwebster-hso@users.noreply.github.com> Date: Mon, 17 Apr 2023 23:51:08 +1000 Subject: [PATCH 2/2] aasa --- setup2.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup2.sh b/setup2.sh index f66a00a..9b5b956 100644 --- a/setup2.sh +++ b/setup2.sh @@ -55,9 +55,13 @@ sudo chmod 755 /opt # Add Microsoft Repos and Applications if [ -f /usr/bin/apt ] ; then - # Import the public repository GPG keys + # Import the public repository GPG keys (depreciated) + # Note: Instead of using this command a keyring should be placed directly in the + # /etc/apt/trusted.gpg.d/ directory with a descriptive name and either "gpg" or "asc" + # as file extension. curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - + # Register the Microsoft Ubuntu repository repo=https://packages.microsoft.com/$(lsb_release -s -i)/$(lsb_release -sr)/prod # convert to lowercase