Added protection to secrets file

Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
Marko Korhonen 2019-11-02 08:56:41 +02:00
parent d8d95ad2fb
commit 52a29c5a0e

View file

@ -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 $@ }