Create install-iscsi-target

This commit is contained in:
Thorsten Spille 2022-05-09 21:49:05 +02:00 committed by GitHub
parent 3ca96f6f35
commit 4e05e5a916
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

6
install-iscsi-target Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
DOMAIN=org.bashclub
apt update
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt -y -qq install targetcli-fb
echo -e "cd iscsi\ncreate iqn.$(date '+%Y-%m').$DOMAIN.iscsi\nexit" | targetcli