Remove commit if the old inadyn binary is found

This commit is contained in:
Bob Mottram 2018-05-12 18:48:01 +01:00
parent e0ee4dc9f8
commit 0dbb5c0c6c
1 changed files with 3 additions and 0 deletions

View File

@ -497,6 +497,9 @@ function install_dynamicdns {
echo "************ 4"
if [ -f /usr/local/sbin/inadyn ]; then
if grep -q "inadyn commit" "$COMPLETION_FILE"; then
sed -d '/inadyn commit/d' "$COMPLETION_FILE"
fi
if [ -d "$INSTALL_DIR/inadyn" ]; then
rm -rf "$INSTALL_DIR/inadyn"
fi