cloudflare / cloudflare/cloudflared

🐛cloudflared rpm upgrade script exits with false positive

Open
#1,059 0 comments 1 reaction 0 assignees View on GitHub
Priority: Normal Type: Bug
Dominant language
Go
Stars
15.6k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Install cloudflared on Amazon Linux / CentOS / RHEL n -1 version
2. Run rpm -Uhv latest-version.rpm
3. See error:

```
root@ip-172-16-102-159 log]# rpm -e cloudflared
rm: cannot remove ‘/usr/local/bin/cloudflared’: No such file or directory
warning: %postun(cloudflared-2023.8.1-1.x86_64) scriptlet failed, exit status 1
```

**Expected behavior**
rpm -e or rpm -Uhv should not error when the cloudflared binary has successfully been removed.

**Environment and versions**
- OS: Amazon Linux 2
- Architecture: amd64
- Version: 2023.8.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.