Skip to content

Commit

Permalink
Merge pull request #516 from GeorgeBurac/CA-333441
Browse files Browse the repository at this point in the history
CA-333441 create directory for set-iscsi-initiator
  • Loading branch information
MarkSymsCtx committed Sep 23, 2020
2 parents 21dafdc + 4df3107 commit 28399e8
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" >&2
exit 1
fi

Expand Down

0 comments on commit 28399e8

Please sign in to comment.