From d11455427c5a42b120de76c4dca1b8d5adef66c7 Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Wed, 15 Apr 2026 13:11:59 +0200 Subject: [PATCH] hostnamectl instead of hostname --- bash.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash.org b/bash.org index 78ca5fc..6735a42 100644 --- a/bash.org +++ b/bash.org @@ -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