diff options
author | Paweł Krupa <pawel@krupa.net.pl> | 2018-12-18 14:02:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-18 14:02:34 +0100 |
commit | 889734018bc70cc81c18102742eb33e4f16f6ea3 (patch) | |
tree | b9af2f52dcbfebc5bdd0aa96e479f8d117e6e5d3 /tests/lifecycle.sh | |
parent | e74857155fad157c2f5b8f05f0a3e0c7ecac98f9 (diff) |
Non-interactive uninstaller (#5021)
Diffstat (limited to 'tests/lifecycle.sh')
-rwxr-xr-x | tests/lifecycle.sh | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/tests/lifecycle.sh b/tests/lifecycle.sh index 5ba7db654e..24c0ed237c 100755 --- a/tests/lifecycle.sh +++ b/tests/lifecycle.sh @@ -8,13 +8,16 @@ then exit 1 fi -if ! git config user.name; then - git config user.email "test@example.com" - git config user.name "test" -fi +WORKSPACE=$(mktemp -d) +cp -r ./ "${WORKSPACE}/" +cd "${WORKSPACE}" +git config user.email "test@example.com" +git config user.name "test" echo "========= INSTALL =========" ./netdata-installer.sh --dont-wait --dont-start-it --install /tmp &>/dev/null +# Copy uninstaller as upgrader will overwrite it with a version from master branch +cp netdata-uninstaller.sh /tmp/netdata-uninstaller.sh echo "========= ADD GARBAGE =========" touch test @@ -26,5 +29,6 @@ git status echo "========= UPDATE =========" ./netdata-updater.sh -#echo "========= UNINSTALL =========" -#./netdata-uninstaller.sh +echo "========= UNINSTALL =========" +mv /tmp/netdata-uninstaller.sh ./netdata-uninstaller.sh +./netdata-uninstaller.sh --yes --force |