- Timestamp:
- Dec 28, 2008, 1:01:02 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/xvm-iscsi-config/debian/xvm-iscsi-config.postinst
r1923 r1925 36 36 db_stop 37 37 38 if [ -e /etc/invirt/conf.d/iscsi ]; then 39 # invirt.config.run_parts_list excludes backup filenames. 40 mv -f /etc/invirt/conf.d/iscsi /etc/invirt/conf.d/iscsi~ 41 fi 38 42 cat >/etc/invirt/conf.d/iscsi <<EOF 39 43 iscsi: … … 46 50 invoke-rc.d open-iscsi restart 47 51 iscsiadm -m discovery -t st -p $(invirt-getconf iscsi.address):3260 48 else 49 # Don't disrupt an existing installation. 50 cat <<EOF 51 xvm-iscsi-config: If the configuration has changed, restart iscsi: 52 elif ! diff /etc/invirt/conf.d/iscsi~ /etc/invirt/conf.d/iscsi >/dev/null; then 53 cat <<EOF 54 xvm-iscsi-config: The configuration has changed. Restart iscsi: 52 55 /etc/init.d/xvm-iscsi-config restart 53 56 /etc/init.d/open-iscsi restart
Note: See TracChangeset
for help on using the changeset viewer.