serverpilot-letsencrypt icon indicating copy to clipboard operation
serverpilot-letsencrypt copied to clipboard

Error attempting to add new domain ssl

Open nickrouty opened this issue 8 years ago • 5 comments

sple.sh: 95: sple.sh: Syntax error: "(" unexpected

I have a couple domains with SSL certs already. I'm trying to add another app SSL and am seeing the error above. I'm using the latest sple.sh

Any help would be appreciated!

nickrouty avatar May 26 '17 05:05 nickrouty

Same here!

johanguse avatar Jun 19 '17 18:06 johanguse

Same here now

DoFox avatar Jun 20 '17 09:06 DoFox

I don't have this issue.., though I am using an older version of this script. Are you running it as root?

bash ./sple.sh

caroseuk avatar Jun 20 '17 10:06 caroseuk

Depending on the way your executing the script, this could be the cause..

I log in as the root user on the server and run ./sple.sh. However if you are running it by the following command sh sple.sh. Then you will likely receive the error mentioned above (as sh does not handle array creation).

When you use ./sple.sh it executes with /bin/bash as specified on the first line with #! But when you use sh sple.sh it executes in sh, not bash.

Hopefully that solves the issue 👍

caroseuk avatar Jun 20 '17 10:06 caroseuk

A believe this issue is already listed here: https://github.com/lesaff/serverpilot-letsencrypt/issues/13

onetrev avatar Oct 02 '17 06:10 onetrev