]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: add missing unit file section name to example
authorLennart Poettering <lennart@poettering.net>
Wed, 8 Nov 2023 09:31:55 +0000 (10:31 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 8 Nov 2023 11:37:26 +0000 (12:37 +0100)
Fixes: #29917
man/systemd-creds.xml

index f2dff10ff1553c80906d18ca33bb22060833e30d..d48f667b8b24f9f54d6b722e481d44a3d304523b 100644 (file)
@@ -475,7 +475,7 @@ SetCredentialEncrypted=mysql-password: \
       <filename>xyz.service</filename>:</para>
 
       <programlisting># mkdir -p /etc/systemd/system/xyz.service.d
-# systemd-ask-password -n | systemd-creds encrypt --name=mysql-password -p - - >/etc/systemd/system/xyz.service.d/50-password.conf
+# systemd-ask-password -n | ( echo "[Service]" &amp;&amp; systemd-creds encrypt --name=mysql-password -p - - ) >/etc/systemd/system/xyz.service.d/50-password.conf
 # systemctl daemon-reload
 # systemctl restart xyz.service</programlisting>
     </example>