YetOpen/certbot-zimbra

./install: line 102: declare: -n: invalid option

skelkelos992 opened this issue · 1 comments

Hello when running install script on a CentOS 7.9 server the following errors are shown

# ./install all
./install: line 102: declare: -n: invalid option
declare: usage: declare [-aAfFgilrtux] [-p] [name[=value] ...]
./install: line 102: declare: -n: invalid option
declare: usage: declare [-aAfFgilrtux] [-p] [name[=value] ...]

CentOS 7 has bash 4.2, bash has nameref variables since 4.3, so the install script as-is won't work. You can install it manually with:

install -v -m 0755 -o root -g root certbot_zimbra.sh /usr/local/bin/ &&
mkdir -v -p /usr/local/share/man/man1 &&
install -v -m 0644 -o root -g root  certbot_zimbra.sh.1 /usr/local/share/man/man1/ &&
mandb

Since CentOS 7 is EOL already and security support for it ends in 2024 I don't think it would be worthwile to rewrite it to not use nameref. Anyone still on RHEL/CentOS 7 can just install manually as before.