From 0b25901b86eb800ed36a8a601dbf415159f9ebfb Mon Sep 17 00:00:00 2001 From: Tommy Date: Tue, 2 Jul 2024 16:48:15 -0700 Subject: [PATCH] Add set -e Signed-off-by: Tommy --- Fedora-Server-40.sh | 2 ++ Fedora-Workstation-40.sh | 2 ++ Proxmox-8.sh | 2 ++ RHEL-9.sh | 2 ++ Ubuntu-24.04-Desktop.sh | 2 ++ Ubuntu-24.04-Server.sh | 2 ++ sample-scripts/Ubuntu-24.04-LEMP.sh | 6 ++++-- 7 files changed, 16 insertions(+), 2 deletions(-) diff --git a/Fedora-Server-40.sh b/Fedora-Server-40.sh index 05daf55..eefee6f 100644 --- a/Fedora-Server-40.sh +++ b/Fedora-Server-40.sh @@ -16,6 +16,8 @@ #Please note that this is how I PERSONALLY setup my computer - I do some stuff such as not using anything to download GNOME extensions from extensions.gnome.org and installing the extensions as a package instead +set -e + output(){ printf '\e[1;34m%-6s\e[m\n' "${@}" } diff --git a/Fedora-Workstation-40.sh b/Fedora-Workstation-40.sh index c50006b..26a4062 100644 --- a/Fedora-Workstation-40.sh +++ b/Fedora-Workstation-40.sh @@ -16,6 +16,8 @@ #Please note that this is how I PERSONALLY setup my computer - I do some stuff such as not using anything to download GNOME extensions from extensions.gnome.org and installing the extensions as a package instead +set -e + output(){ printf '\e[1;34m%-6s\e[m\n' "${@}" } diff --git a/Proxmox-8.sh b/Proxmox-8.sh index 824a8ed..f573b35 100644 --- a/Proxmox-8.sh +++ b/Proxmox-8.sh @@ -16,6 +16,8 @@ # You need to add either the non-subscription repo or the testing repo from the Proxmox WebUI after running this script. +set -e + output(){ printf '\e[1;34m%-6s\e[m\n' "${@}" } diff --git a/RHEL-9.sh b/RHEL-9.sh index 5bb38c5..9b76c98 100644 --- a/RHEL-9.sh +++ b/RHEL-9.sh @@ -14,6 +14,8 @@ # License for the specific language governing permissions and limitations under # the License. +set -e + output(){ printf '\e[1;34m%-6s\e[m\n' "${@}" } diff --git a/Ubuntu-24.04-Desktop.sh b/Ubuntu-24.04-Desktop.sh index e7e8ff8..0ea6224 100644 --- a/Ubuntu-24.04-Desktop.sh +++ b/Ubuntu-24.04-Desktop.sh @@ -16,6 +16,8 @@ #Please note that this is how I PERSONALLY setup my computer - I do some stuff such as not using anything to download GNOME extensions from extensions.gnome.org and installing the extensions as a package instead +set -e + output(){ printf '\e[1;34m%-6s\e[m\n' "${@}" } diff --git a/Ubuntu-24.04-Server.sh b/Ubuntu-24.04-Server.sh index 2bab0ab..ebc7a19 100644 --- a/Ubuntu-24.04-Server.sh +++ b/Ubuntu-24.04-Server.sh @@ -16,6 +16,8 @@ #Meant to be run on Ubuntu Pro Minimal +set -e + output(){ printf '\e[1;34m%-6s\e[m\n' "${@}" } diff --git a/sample-scripts/Ubuntu-24.04-LEMP.sh b/sample-scripts/Ubuntu-24.04-LEMP.sh index 9661505..ca4a5db 100644 --- a/sample-scripts/Ubuntu-24.04-LEMP.sh +++ b/sample-scripts/Ubuntu-24.04-LEMP.sh @@ -16,6 +16,8 @@ # Assumes that it is run AFTER https://github.com/TommyTran732/Linux-Setup-Scripts/blob/main/Ubuntu-24.04-Server.sh +set -e + output(){ printf '\e[1;34m%-6s\e[m\n' "${@}" } @@ -30,7 +32,7 @@ sudo ufw allow 443 # Add mainline NGINX repo # This is extremely important as Ubuntu keeps shipping outdated NGINX -sudo curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null +unpriv curl https://nginx.org/keys/nginx_signing.key | gpg --dearmor | sudo tee /usr/share/keyrings/nginx-archive-keyring.gpg >/dev/null sudo chmod 644 /usr/share/keyrings/nginx-archive-keyring.gpg unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/apt/sources.list.d/nginx.sources | sudo tee /etc/apt/sources.list.d/nginx.sources sudo chmod 644 /etc/apt/sources.list.d/nginx.sources @@ -39,7 +41,7 @@ sudo chmod 644 /etc/apt/sources.list.d/nginx.sources sudo add-apt-repository -y ppa:ondrej/php # Add upstream MariaDB repo -curl https://supplychain.mariadb.com/mariadb-keyring-2019.gpg | sudo tee /usr/share/keyrings/mariadb-keyring-2019.gpg +unpriv curl https://supplychain.mariadb.com/mariadb-keyring-2019.gpg | sudo tee /usr/share/keyrings/mariadb-keyring-2019.gpg sudo chmod 644 /usr/share/keyrings/mariadb-keyring-2019.gpg unpriv curl https://raw.githubusercontent.com/TommyTran732/Linux-Setup-Scripts/main/etc/apt/sources.list.d/mariadb.sources | sudo tee /etc/apt/sources.list.d/mariadb.sources sudo chmod 644 /etc/apt/sources.list.d/maridadb.sources