We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fe3ee6 commit 74b332bCopy full SHA for 74b332b
ct/emqx.sh
@@ -31,7 +31,13 @@ function update_script() {
31
msg_ok "Stopped EMQX"
32
33
msg_info "Removing old EMQX"
34
- $STD apt-get remove --purge -y emqx
+ if dpkg -l | grep -q "^ii\s\+emqx\s"; then
35
+ $STD apt-get remove --purge -y emqx
36
+ elif dpkg -l | grep -q "^ii\s\+emqx-enterprise\s"; then
37
+ $STD apt-get remove --purge -y emqx-enterprise
38
+ else
39
+ msg_ok "No old EMQX package found"
40
+ fi
41
msg_ok "Removed old EMQX"
42
43
msg_info "Downloading EMQX v${RELEASE}"
0 commit comments