From 52a29c5a0e4691c6a74d525e5a181ec64a6d93c4 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Sat, 2 Nov 2019 08:56:41 +0200 Subject: [PATCH] Added protection to secrets file Signed-off-by: Marko Korhonen --- home/.config/zsh/03-functions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.config/zsh/03-functions.zsh b/home/.config/zsh/03-functions.zsh index c5ea1cc..5cb8daf 100644 --- a/home/.config/zsh/03-functions.zsh +++ b/home/.config/zsh/03-functions.zsh @@ -108,7 +108,7 @@ ultimatepowersave() { powersave && sudo ryzenadj --stapm-limit=25000 --fast-limi cpufreq() { watch -n 1 eval "cat /proc/cpuinfo |grep MHz" } # dotdrop -updatesecrets() { bash $DOTREPO/secrets/secrets.sh } +updatesecrets() { bash $DOTREPO/secrets/secrets.sh; chmod 600 $DOTREPO/secrets/secrets } dotdrop() { source $DOTREPO/secrets/secrets && $DOTREPO/dotdrop/dotdrop.sh --cfg=$DOTREPO/config-home.yaml $@ } sdotdrop() { source $DOTREPO/secrets/secrets && sudo -E $DOTREPO/dotdrop/dotdrop.sh --cfg=$DOTREPO/config-root.yaml $@ } dotgit() { git -C $DOTREPO $@ }