Files
dnsupdate/installer/install.sh

31 lines
661 B
Bash

#!/bin/sh
DNSPYTHON_VER=1.3.0
OPTIK_VER=1.4.1
# Do we have the dns modules??
./check_modules.py dns
if [ "$?" = "1" ]; then
DNSPYTHON=dnspython-$DNSPYTHON_VER
tar zxf $DNSPYTHON.tar.gz
cd $DNSPYTHON
python setup.py install
cd ..
fi
./check_modules.py optparse
if [ "$?" = "1" ]; then
OPTIK=dnspython-$OPTIK_VER
tar zxf $OPTIK.tar.gz
cd $OPTIK
python setup.py install
cd ..
fi
# Copy the manpages
cp ../dnsupdate.1 /usr/share/man/man1
gzip /usr/share/man/man1/dnsupdate.1
cp ../dnsupdaterc.5 /usr/share/man/man5
gzip /usr/share/man/man5/dnsupdaterc.5
cp ../dnsupdate.py /usr/bin/dnsupdate
chmod 755 /usr/bin/dnsupdate