hostnamectl instead of hostname
This commit is contained in:
@@ -244,7 +244,7 @@ export LINKDING_TOKEN=`pass nas/linkding_token`
|
|||||||
|
|
||||||
*** Restic
|
*** Restic
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
if [ "$(hostname)" = "ldehaeze" ]; then
|
if [ "$(hostnamectl hostname)" = "ldehaeze" ]; then
|
||||||
export RESTIC_REPOSITORY=sftp:thomas@homelab:/srv/storage/Backups/esrf-laptop
|
export RESTIC_REPOSITORY=sftp:thomas@homelab:/srv/storage/Backups/esrf-laptop
|
||||||
export RESTIC_PASSWORD_COMMAND="pass show restic"
|
export RESTIC_PASSWORD_COMMAND="pass show restic"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user