marcosnils / bin

Effortless binary manager
MIT License
648 stars 45 forks source link

linux file permission incorrect after install caddy #144

Closed m2acgi closed 1 year ago

m2acgi commented 1 year ago
bin install github.com/caddyserver/caddy

[root@linux-test ~]# ls -lh /usr/local/bin/
total 52M
-r-x------. 1 root root 15M Aug 22 11:10 bin
-rwxr--r--. 1 root root 38M Aug 22 11:13 caddy

The file caddy should not be have permission w

marcosnils commented 1 year ago

:wave:

bin does not touch the file permissions. The original caddy binary contained in the downloaded .tar.gz file already has those:

https://github.com/caddyserver/caddy/releases/download/v2.5.2/caddy_2.5.2_linux_amd64.tar.gz


tar -tvf caddy_2.5.2_linux_amd64.tar.gz 
-rw-r--r-- runner/docker 11358 2022-07-12 15:29 LICENSE
-rw-r--r-- runner/docker 11056 2022-07-12 15:29 README.md
-rwxr-xr-x runner/docker 38825984 2022-07-12 15:35 caddy
m2acgi commented 1 year ago

Thanks, 👍