From 717c81d46e58560f0517b416ee9fe7c969f68bbf Mon Sep 17 00:00:00 2001 From: Jakub Zenon Kujawa Date: Wed, 20 Mar 2024 21:29:12 +0100 Subject: [PATCH] chore(scripts): use snippets to set file permission --- config/common_modules/scripts.yml | 3 ++- config/scripts/file-permissions.sh | 6 ------ 2 files changed, 2 insertions(+), 7 deletions(-) delete mode 100644 config/scripts/file-permissions.sh diff --git a/config/common_modules/scripts.yml b/config/common_modules/scripts.yml index 83d2ec6..bb640f1 100644 --- a/config/common_modules/scripts.yml +++ b/config/common_modules/scripts.yml @@ -1,6 +1,7 @@ type: script scripts: - brave-browser.sh - - file-permissions.sh - power-scheduler.sh - systemwide-themes.sh +snippets: + - "chmod 440 /usr/etc/sudoers.d/timeout" diff --git a/config/scripts/file-permissions.sh b/config/scripts/file-permissions.sh deleted file mode 100644 index 2e01599..0000000 --- a/config/scripts/file-permissions.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -# Tell build process to exit if there are any errors. -set -euo pipefail - -chmod 440 /usr/etc/sudoers.d/timeout