This commit is contained in:
Jonas Forsberg 2021-11-12 12:51:33 +01:00
parent 6fe1bd3e0c
commit 93a38129c0
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9
3 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,6 @@
#!/bin/bash
function reset_evolution() {
# Reset evolution calendar factory
# When it hangs connecting to EWS calendar outlooko365
EWS_DEBUG=2 /usr/lib/evolution-data-server/evolution-calendar-factory -w
}

8
.functions/restic.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
function restic(){
# shellcheck disable=SC1090
source "$HOME"/.restic/restic.env
/usr/bin/restic --cacert="$HOME"/.restic/cert.pem "$@"
}

8
.functions/salt.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
function salt() {
if [[ "$1" == "state.apply" ]]; then
sudo salt-call --local --file-root "$HOME/salt/states" --pillar-root "$HOME/salt/pillars" "$@" pillar="{username: $USER}"
else·
sudo salt-call --local --file-root "$HOME/salt/states" --pillar-root "$HOME/salt/pillars" "$@"
fi
}