Skip to content

Commit

Permalink
95iscsi: Fix /etc/iscsi installation
Browse files Browse the repository at this point in the history
Previous all files are installed with inst_dir, which will not install
the files under /etc/iscsi/, and it create folders with the same of the
files which is wrong.

Now only use inst_dir to install the config dir and ensure it
exists, and use inst_multiple to install the config files.

Signed-off-by: Kairui Song <[email protected]>
  • Loading branch information
ryncsn authored and haraldh committed Jan 14, 2020
1 parent 5965710 commit 4598b55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules.d/95iscsi/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ install() {
$systemdsystemunitdir/sockets.target.wants/iscsiuio.socket

if [[ $hostonly ]]; then
inst_dir $(/usr/bin/find /etc/iscsi)
inst_dir /etc/iscsi
inst_multiple $(find /etc/iscsi -type f)
else
inst_simple /etc/iscsi/iscsid.conf
fi
Expand Down

0 comments on commit 4598b55

Please sign in to comment.