Commit df5f0262 authored by Eugene Kolomeetz's avatar Eugene Kolomeetz Committed by Pavel Emelyanov

scripts: terminate systemd-autofs-restart.sh if saved mountpoint is missing

restore_mountpoint() should never be called without saved mountpoint.
If this happens, this is bug in script logic, which needs fixing.
https://jira.sw.ru/browse/PSBM-44207Signed-off-by: 's avatarEugene Kolomeetz <klm@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 73a24127
......@@ -107,7 +107,7 @@ function save_mountpoint {
function restore_mountpoint {
local mountpoint=$1
[ -n "$bindmount" ] || exit 0
[ -n "$bindmount" ] || exit 1
# Umount file system, remounted by systemd, if any
if ! check_fs_type $mountpoint "autofs"; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment