Fix error report by passing echo the -n parameter. Thanks to 乃村翼
This commit is contained in:
parent
68253cc7a5
commit
0713769a19
@ -1311,7 +1311,7 @@ archive)
|
||||
if [ "${ezjail_imagetype}" -a "${ezjail_imagetype}" != "zfs" -a -z "${ezjail_attached}" ]; then
|
||||
if [ "${ezjail_attachblocking}" ]; then
|
||||
echo "Warning: Jail ${ezjail_name} is an image jail and can not be attached automatically."
|
||||
echo " Use '${ezjail_admin} config -i attach ${ezjail_name}' to attach it first."
|
||||
echo " Use '${ezjail_admin} config -i attach ${ezjail_name}' to attach it first."
|
||||
continue
|
||||
fi
|
||||
mount_images
|
||||
@ -1361,7 +1361,7 @@ archive)
|
||||
[ "${ezjail_imagesize}" ] && detach_images keep
|
||||
|
||||
# An error on a jail not running is bad
|
||||
[ ${ezjail_paxresult} -eq 0 -o "${ezjail_force}" ] || echo "Warning: Archiving jail ${ezjail_name} was not completely successful.\n Please refer to the output above for problems the archiving tool encountered.\n You may ignore reports concerning setting access and modification times.\n You might want to check and remove ${ezjail_archive}."
|
||||
[ ${ezjail_paxresult} -eq 0 -o "${ezjail_force}" ] || echo -n "Warning: Archiving jail ${ezjail_name} was not completely successful.\n Please refer to the output above for problems the archiving tool encountered.\n You may ignore reports concerning setting access and modification times.\n You might want to check and remove ${ezjail_archive}."
|
||||
|
||||
# When archiving a running jail, some errors might occur
|
||||
[ ${ezjail_paxresult} -eq 0 ] || echo "Warning: Archiving jail ${ezjail_name} was not completely successful. For a running jail this is not unusual."
|
||||
|
@ -64,4 +64,7 @@
|
||||
# For auto snapshots this is the default policy to keep old snapshots. In each window there
|
||||
# will be guaranteed to be one or two snapshots only
|
||||
# If this variable is not set, no snapshots will be removed by ezjail-admin snapshot
|
||||
|
||||
# Example policy for a database jail with rollbackable snapshots with at least four snapshots
|
||||
# in the last hour. Beware of the load caused by destroying snapshots.
|
||||
# ezjail_default_retention_policy="4x15m 3x1h 2x2h 4h 12h 6x1d 7x1w 11x4w 1000x1y"
|
||||
|
Loading…
x
Reference in New Issue
Block a user