Remove old repo if it exists

This commit is contained in:
Bob Mottram 2018-05-12 18:15:47 +01:00
parent 758568200a
commit 6e80322597
1 changed files with 7 additions and 0 deletions

View File

@ -499,6 +499,13 @@ function install_dynamicdns {
apt-get -yq install build-essential curl libgnutls28-dev automake1.11
apt-get -yq install gnutls-dev libconfuse-dev
if [ -f /usr/local/sbin/inadyn ]; then
if [ -d "$INSTALL_DIR/inadyn" ]; then
rm -rf "$INSTALL_DIR/inadyn"
fi
fi
if [ ! -d "$INSTALL_DIR/inadyn" ]; then
if [ -d /repos/inadyn ]; then
mkdir "$INSTALL_DIR/inadyn"