From 0a9f8aa8bc2615bfc18158bf2a7506a1d034e0b6 Mon Sep 17 00:00:00 2001 From: Michael Haaf Date: Thu, 15 Feb 2024 10:30:34 -0500 Subject: [PATCH] docs: fix init-hoot script for hostname matching (#1182) The init-hook provided for creating a distrobox with the the same hostname as its host has two typos: - Command substitution wrapping `uname -n` suppressing stdout redirect - trailing "`" Using this init-hook as suggested causes build errors. This fix corrects the suggested script by echoing the command substitution and removing the trailing "`". See issue #1164 for details. --- docs/useful_tips.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/useful_tips.md b/docs/useful_tips.md index cb82520051..b67c93805b 100644 --- a/docs/useful_tips.md +++ b/docs/useful_tips.md @@ -222,7 +222,7 @@ creating it with the following init-hook: ```sh distrobox create --name test --image your-chosen-image:tag \ - --init-hooks '"$(uname -n)" > /etc/hostname'` + --init-hooks 'echo "$(uname -n)" > /etc/hostname' ``` This will ensure SSH X-Forwarding will work when SSH-ing inside the distrobox: