Rudiger Wolf's picture

The TKLPatch conf file below does not seem to be making any lasting changes to /etc/bash.bashrc file!

Any suggestions as to how I can append the required info to a file while making in new ISO?

Thanks

 


#!/bin/bash -ex
install()
{
    apt-get update
    DEBIAN_FRONTEND=noninteractive apt-get -y \
        -o DPkg::Options::=--force-confdef \
        -o DPkg::Options::=--force-confold \
        install $@
}

cleanup_apt()
    {
        rm -r /var/cache/apt/*
        mkdir /var/cache/apt/archives
        mkdir /var/cache/apt/archives/partial
    }


HOSTNAME=pentland

# set hostname
echo "$HOSTNAME" > /etc/hostname
sed -i "s|127.0.1.1 \(.*\)|127.0.1.1 $HOSTNAME|" /etc/hosts

echo "# setup apps to use cntlm proxy" >> /etc/bash.bachrc
echo "export ftp_proxy=http://localhost:9090" >> /etc/bash.bachrc
echo "export http_proxy=\$ftp_proxy" >> /etc/bash.bachrc
echo "export https_proxy=\$ftp_proxy" >> /etc/bash.bachrc

cleanup_apt

# tell the world what we've done!
echo 'I just patched TurnKey!' >> /etc/issue


Forum: 
Liraz Siri's picture

/etc/bash.bachrc => /etc/bash.bashrc.

Sometimes it's the simplest things that trip us up!

Add new comment