|
|
|
|
4396
|
fi
|
4396
|
fi
|
4397
|
echo "$DEFAULT_DOMAIN_NAME" > /etc/hostname
|
4397
|
echo "$DEFAULT_DOMAIN_NAME" > /etc/hostname
|
4398
|
hostname $DEFAULT_DOMAIN_NAME
|
4398
|
hostname $DEFAULT_DOMAIN_NAME
|
4399
|
- sed -i "s/127.0.1.1.*/127.0.1.1 $DEFAULT_DOMAIN_NAME/g" /etc/hosts
|
|
|
4400
|
- echo "127.0.1.1 $DEFAULT_DOMAIN_NAME" >> /etc/hosts
|
|
|
|
|
4399
|
+ if grep -q "127.0.1.1" /etc/hosts; then
|
|
|
4400
|
+ sed -i "s/127.0.1.1.*/127.0.1.1 $DEFAULT_DOMAIN_NAME/g" /etc/hosts
|
|
|
4401
|
+ else
|
|
|
4402
|
+ echo "127.0.1.1 $DEFAULT_DOMAIN_NAME" >> /etc/hosts
|
|
|
4403
|
+ fi
|
4401
|
echo 'set_your_domain_name' >> $COMPLETION_FILE
|
4404
|
echo 'set_your_domain_name' >> $COMPLETION_FILE
|
4402
|
}
|
4405
|
}
|
4403
|
|
4406
|
|
|
|
|
|
8047
|
sed -i 's|/var/log.*||g' /etc/tripwire/twpol.txt
|
8050
|
sed -i 's|/var/log.*||g' /etc/tripwire/twpol.txt
|
8048
|
# Ignore /etc/tripwire
|
8051
|
# Ignore /etc/tripwire
|
8049
|
if ! grep -q "!/etc/tripwire" /etc/tripwire/twpol.txt; then
|
8052
|
if ! grep -q "!/etc/tripwire" /etc/tripwire/twpol.txt; then
|
8050
|
- sed -i '\|/etc\t\t->.*|a\ !/etc/tripwire;' /etc/tripwire/twpol.txt
|
|
|
|
|
8053
|
+ sed -i '\|/etc\t\t->.*|a\ !/etc/tripwire;' /etc/tripwire/twpol.txt
|
8051
|
fi
|
8054
|
fi
|
8052
|
# Avoid logging the changed database
|
8055
|
# Avoid logging the changed database
|
8053
|
sed -i 's|$(TWETC)/tw.pol.*||g' /etc/tripwire/twpol.txt
|
8056
|
sed -i 's|$(TWETC)/tw.pol.*||g' /etc/tripwire/twpol.txt
|