fix quotes

When strings must be quoted in messages, it's common to use an escaped backtick at the beginning, then a single-quote at the end.
This commit is contained in:
Jérémy Lecour 2024-06-27 18:26:51 +02:00 committed by Jérémy Lecour
parent d8f0f97d79
commit 7f297fee39
Signed by: jlecour
SSH key fingerprint: SHA256:h+5LgHRKwN9lS0SsdVR5yZPeFlJE4Mt+8UtL4CcP8dY
2 changed files with 7 additions and 7 deletions

View file

@ -19,7 +19,7 @@ test -d "${jail_path}" || error "${jail_name}: jail not found" 2
# Start the jail
notice "Starting jail \`${jail_name}\`"
notice "Starting jail \`${jail_name}'"
systemctl start systemd-nspawn@${jail_name} || error "Failed to start nspawn container for jail \`${jail_name}'"
if systemctl is-active --quiet systemd-nspawn@${jail_name}; then
@ -45,16 +45,16 @@ if systemctl is-active --quiet systemd-nspawn@${jail_name}; then
if [ "${success}" -eq 0 ]; then
notice "OK SSH : Started jail \`${jail_name}\`"
notice "OK SSH : Started jail \`${jail_name}'"
else
if systemctl is-active --quiet systemd-nspawn@${jail_name}; then
error "WARNING SSH : Jail is running, but failed to get response from sshd for jail \`${jail_name}\` within 3 seconds"
error "WARNING SSH : Jail is running, but failed to get response from sshd for jail \`${jail_name}' within 3 seconds"
else
error "Failed to to start \`${jail_name}\` - Jail terminated. Check \`systemctl status systemd-nspawn@${jail_name}\`"
error "Failed to to start \`${jail_name}' - Jail terminated. Check \`systemctl status systemd-nspawn@${jail_name}'"
fi
fi
else
error "Failed to to start \`${jail_name}\` - Jail terminated. Check \`systemctl status systemd-nspawn@${jail_name}\`"
error "Failed to to start \`${jail_name}' - Jail terminated. Check \`systemctl status systemd-nspawn@${jail_name}'"
fi

View file

@ -18,7 +18,7 @@ test -d "${jail_path}" || error "${jail_name}: jail not found" 2
"${LIBDIR}/bkctld-is-on" "${jail_name}" || exit 0
if systemctl stop systemd-nspawn@${jail_name}; then
notice "Stopped jail \`${jail_name}\`"
notice "Stopped jail \`${jail_name}'"
else
error "Stop jail \`${jail_name}\` : failed"
error "Stop jail \`${jail_name}' : failed"
fi