Skip to content

Commit

Permalink
Merge 9422c9e into 21dafdc
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeBurac committed Sep 23, 2020
2 parents 21dafdc + 9422c9e commit b5cb7a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/set-iscsi-initiator
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ trap cleanup EXIT
trap ecleanup INT
trap ecleanup TERM

mkdir -p /var/lock/sm/iscsiadm

INITIATORFILE=/etc/iscsi/initiatorname.iscsi
TMPFILE=$TMPDIR/initiatorname.iscsi

Expand All @@ -40,6 +42,7 @@ TMPFILE=$TMPDIR/initiatorname.iscsi
if [ $? -eq 0 ]
then
logger -p local2.err "set-iscsi-initiator active sessions so not updating"
echo "set-iscsi-initiator: there are active sessions so not updating"
exit 1
fi

Expand Down

0 comments on commit b5cb7a8

Please sign in to comment.