Skip to content
Snippets Groups Projects
Commit 105c2a78 authored by Bob Mottram's avatar Bob Mottram
Browse files

Remove commit if the old inadyn binary is found

parent 0dbb5c0c
No related branches found
No related tags found
No related merge requests found
......@@ -489,6 +489,12 @@ function install_dynamicdns {
sed -i '/INADYN_COMMIT/d' "$CONFIGURATION_FILE"
fi
if [ -f /usr/local/sbin/inadyn ]; then
if grep -q "inadyn commit" "$COMPLETION_FILE"; then
sed -d '/inadyn commit/d' "$COMPLETION_FILE"
fi
fi
CURR_INADYN_COMMIT=$(get_completion_param "inadyn commit")
echo "************ 3 $CURR_INADYN_COMMIT $INADYN_COMMIT"
if [[ "${CURR_INADYN_COMMIT}" == "${INADYN_COMMIT}" ]]; then
......@@ -497,9 +503,6 @@ 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment