Remove old repo sooner

This commit is contained in:
Bob Mottram 2018-05-12 18:23:35 +01:00
parent 6e80322597
commit a30f751b06
1 changed files with 6 additions and 6 deletions

View File

@ -487,6 +487,12 @@ function install_dynamicdns {
return return
fi fi
if [ -f /usr/local/sbin/inadyn ]; then
if [ -d "$INSTALL_DIR/inadyn" ]; then
rm -rf "$INSTALL_DIR/inadyn"
fi
fi
# update to the next commit # update to the next commit
function_check set_repo_commit function_check set_repo_commit
set_repo_commit "$INSTALL_DIR/inadyn" "inadyn commit" "$INADYN_COMMIT" "$INADYN_REPO" set_repo_commit "$INSTALL_DIR/inadyn" "inadyn commit" "$INADYN_COMMIT" "$INADYN_REPO"
@ -500,12 +506,6 @@ function install_dynamicdns {
apt-get -yq install build-essential curl libgnutls28-dev automake1.11 apt-get -yq install build-essential curl libgnutls28-dev automake1.11
apt-get -yq install gnutls-dev libconfuse-dev 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 "$INSTALL_DIR/inadyn" ]; then
if [ -d /repos/inadyn ]; then if [ -d /repos/inadyn ]; then
mkdir "$INSTALL_DIR/inadyn" mkdir "$INSTALL_DIR/inadyn"