1
0
mirror of https://github.com/tommytran732/QubesOS-Scripts synced 2024-11-21 17:31:34 -05:00

Add set -e

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2024-07-02 16:52:42 -07:00
parent 889e82ad60
commit e810a7d978
Signed by: Tomster
GPG Key ID: 555C902A34EC968F
5 changed files with 10 additions and 0 deletions

View File

@ -14,6 +14,8 @@
# License for the specific language governing permissions and limitations under # License for the specific language governing permissions and limitations under
# the License. # the License.
set -e
# Enabling discard and fstrim # Enabling discard and fstrim
sudo sed -i 's/issue_discards = 0/issue_discards = 1/g' /etc/lvm/lvm.conf sudo sed -i 's/issue_discards = 0/issue_discards = 1/g' /etc/lvm/lvm.conf
sudo systemctl enable --now fstrim.timer sudo systemctl enable --now fstrim.timer

View File

@ -14,6 +14,8 @@
# License for the specific language governing permissions and limitations under # License for the specific language governing permissions and limitations under
# the License. # the License.
set -e
unpriv(){ unpriv(){
sudo -u nobody "$@" sudo -u nobody "$@"
} }

View File

@ -14,6 +14,8 @@
# License for the specific language governing permissions and limitations under # License for the specific language governing permissions and limitations under
# the License. # the License.
set -e
# Install necessary packages # 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 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

View File

@ -14,6 +14,8 @@
# License for the specific language governing permissions and limitations under # License for the specific language governing permissions and limitations under
# the License. # the License.
set -e
unpriv(){ unpriv(){
sudo -u nobody "$@" sudo -u nobody "$@"
} }

View File

@ -14,6 +14,8 @@
# License for the specific language governing permissions and limitations under # License for the specific language governing permissions and limitations under
# the License. # the License.
set -e
unpriv(){ unpriv(){
sudo -u nobody "$@" sudo -u nobody "$@"
} }