Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion setup2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -52,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
Expand Down