Changeset 1276 in MondoRescue for branches/stable/mindi/install.sh


Ignore:
Timestamp:
Mar 28, 2007, 2:27:39 AM (17 years ago)
Author:
Bruno Cornec
Message:

Do not overwrite mindi.conf or deplist.txt if they already exist

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/install.sh

    r1089 r1276  
    7979# Example of mindi.conf
    8080#
    81 cat > $conf/mindi.conf << EOF
     81if [ ! -e $conf/mindi.conf ]; then
     82    cat > $conf/mindi.conf << EOF
    8283#
    8384# Configuration file for mindi
     
    9192#
    9293EOF
    93 chmod 644 $conf/mindi.conf
     94    chmod 644 $conf/mindi.conf
     95fi
    9496
    9597#
    9698# Example of deplist.txt
    9799#
    98 cat > $conf/deplist.txt << EOF
     100if [ ! -e $conf/deplist.txt ]; then
     101    cat > $conf/deplist.txt << EOF
    99102# mindi additional dependency list
    100103#
     
    104107
    105108EOF
    106 chmod 644 $conf/deplist.txt
     109    chmod 644 $conf/deplist.txt
     110fi
    107111
    108112cp -af rootfs aux-tools $locallib/mindi
Note: See TracChangeset for help on using the changeset viewer.