Installation error on a clean Ubuntu 24.04 system
It looks like the installation is not fully verified here, but success is still reported: https://github.com/PasarGuard/scripts/blob/main/pasarguard.sh#L331
The get.acme.sh wrapper does not explicitly return exit 1 when the installation script fails.
This leads to cases where the installation fails, but the logs still say installed successfully:
Choose SSL setup method for panel installation:
1) Let's Encrypt Domain certificate
2) Let's Encrypt IP certificate (short-lived)
3) Custom certificate + key paths
4) No SSL
Port 80 (or configured --ssl-http-port) must be reachable for Let's Encrypt.
Select SSL option [1-4] (default: 1): 1
Enter domain for SSL certificate (example: panel.example.com): ******
Installing socat
E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 2690 (unattended-upgr)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
Installing acme.sh for SSL certificate management...
acme.sh installed successfully
acme.sh binary not found after installation.
SSL setup failed. Continuing without SSL. You can configure SSL later in /opt/pasarguard/.env.
A manual acme.sh installation attempt produces the following error:
It is recommended to install crontab first. Try to install 'cron', 'crontab', 'crontabs' or 'vixie-cron'.
We need to set a cron job to renew the certs automatically.
Otherwise, your certs will not be able to be renewed automatically.
Please add '--force' and try install again to go without crontab.
./acme.sh --install --force
Pre-check failed, cannot install.
Pull request with a minimal fix: #17
Installation error on a clean Ubuntu 24.04 system
It looks like the installation is not fully verified here, but success is still reported: https://github.com/PasarGuard/scripts/blob/main/pasarguard.sh#L331
The get.acme.sh wrapper does not explicitly return exit 1 when the installation script fails.
This leads to cases where the installation fails, but the logs still say installed successfully:
A manual acme.sh installation attempt produces the following error:
Pull request with a minimal fix: #17