hostnamectl instead of hostname

This commit is contained in:
2026-04-15 13:11:59 +02:00
parent 05da66e888
commit d11455427c
+1 -1
View File
@@ -244,7 +244,7 @@ export LINKDING_TOKEN=`pass nas/linkding_token`
*** Restic
#+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_PASSWORD_COMMAND="pass show restic"
fi