So,

When installing conary-proxy, I want to mangle %(root)s/etc/hosts like so:

#/bin/sh
#
# Set up a loopback IP address for conaryLocalProxy if one is not
# already defined.
#
# Since it does no harm, we'll simply leave it in /etc/hosts upon
# uninstallation
#
if [ -f /etc/hosts -a -x /bin/egrep ]; then
MATCH=`egrep -E -c -e '^([[:digit:]]{1,3}\.){3}[[:digit:]]{1,3}[[:space:]].*conaryLocalProxy.*$' /etc/hosts`
  #echo "MATCH is = _ $MATCH _"
  if [ "$MATCH" -eq "0" ]; then
    #echo -n "appending to /etc/hosts..."
    echo "127.25.11.73            conaryLocalProxy" >> /etc/hosts
    #echo " Done."
  fi
fi


But where would I put this script, how would I execute it and which Conary-related substitutions would it need? Any help would be greatly appreciated. (=

_______________________________________________
Foresight-devel mailing list
[email protected]
https://lists.foresightlinux.org/mailman/listinfo/foresight-devel

Reply via email to