Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CA-333441 create directory for set-iscsi-initiator #516

Merged
merged 1 commit into from
Sep 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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