From e810a7d9784c39896e2c9bfe07e6d19b8b6ecb30 Mon Sep 17 00:00:00 2001 From: Tommy Date: Tue, 2 Jul 2024 16:52:42 -0700 Subject: [PATCH] Add set -e Signed-off-by: Tommy --- dom0.sh | 2 ++ fedora-minimal/fedora-minimal.sh | 2 ++ fedora-minimal/sys-net.sh | 2 ++ whonix/whonix-gw.sh | 2 ++ whonix/whonix-ws.sh | 2 ++ 5 files changed, 10 insertions(+) diff --git a/dom0.sh b/dom0.sh index cd157d1..7d39042 100644 --- a/dom0.sh +++ b/dom0.sh @@ -14,6 +14,8 @@ # License for the specific language governing permissions and limitations under # the License. +set -e + # Enabling discard and fstrim sudo sed -i 's/issue_discards = 0/issue_discards = 1/g' /etc/lvm/lvm.conf sudo systemctl enable --now fstrim.timer diff --git a/fedora-minimal/fedora-minimal.sh b/fedora-minimal/fedora-minimal.sh index e0c1bf7..f06c6e4 100644 --- a/fedora-minimal/fedora-minimal.sh +++ b/fedora-minimal/fedora-minimal.sh @@ -14,6 +14,8 @@ # License for the specific language governing permissions and limitations under # the License. +set -e + unpriv(){ sudo -u nobody "$@" } diff --git a/fedora-minimal/sys-net.sh b/fedora-minimal/sys-net.sh index 75578b3..facc71c 100644 --- a/fedora-minimal/sys-net.sh +++ b/fedora-minimal/sys-net.sh @@ -14,6 +14,8 @@ # License for the specific language governing permissions and limitations under # the License. +set -e + # Install necessary packages dnf install -y @hardware-support arc-theme chrony gnome-keyring NetworkManager-wifi network-manager-applet qubes-core-agent-networking qubes-core-agent-network-manager xfce4-notifyd diff --git a/whonix/whonix-gw.sh b/whonix/whonix-gw.sh index 11d62eb..a5e4610 100644 --- a/whonix/whonix-gw.sh +++ b/whonix/whonix-gw.sh @@ -14,6 +14,8 @@ # License for the specific language governing permissions and limitations under # the License. +set -e + unpriv(){ sudo -u nobody "$@" } diff --git a/whonix/whonix-ws.sh b/whonix/whonix-ws.sh index e8e9f0f..d54a187 100644 --- a/whonix/whonix-ws.sh +++ b/whonix/whonix-ws.sh @@ -14,6 +14,8 @@ # License for the specific language governing permissions and limitations under # the License. +set -e + unpriv(){ sudo -u nobody "$@" }