Closed bengalih closed 5 years ago
It's because the default .bashrc is not loaded in your shell.
In that case, you must pass --home
to the -issue
command, so that it knows where to find the configs.
/jffs/scripts/acme.sh/acme.sh --home "/jffs/scripts/acme.sh" --issue -d xxxxxxxxxx
Steps to reproduce
Installing with:
./acme.sh --install --home /tmp/mnt/flash_drive/opt/acme --config-home /tmp/mnt/flash_drive/opt/acme/data --cert-home /tmp/mnt/flash_drive/opt/acme/mycerts
getting the following during install:
This is on an ASUS router running asuswrt-Merlin software. There is no persistent profile on the system as it is generated upon each boot. Additional software (like Entware and acme.sh) need to be installed to a usb drive mounted (i.e. /mnt/flash_drive). There is a small persistent jffs partition to allow some linkages between the permanent usb storage and the dynamically created system.
I am running acme.sh from
/tmp/mnt/flash_drive/opt/acme
but it appears to create everything in ~ :After certificate issuance it also places cert there:
Because the script won't save any of its config or certs outside the ~ directory, it will all be lost on a reboot since this is volatile.
It appears that the install syntax is supposed to control this behavior, but it doesn't appear to honor those settings.