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:
parent
c7ac0a78a6
commit
b31834103a
2 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue