lesaff / serverpilot-letsencrypt

(NO LONGER MAINTAINED) | Bash script to generate and install Let's Encrypt certificate for your websites on your ServerPilot account (Free or Paid Plan)
MIT License
346 stars 84 forks source link

Error attempting to add new domain ssl #40

Open nickrouty opened 7 years ago

nickrouty commented 7 years ago

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!

johanguse commented 7 years ago

Same here!

DoFox commented 7 years ago

Same here now

caroseuk commented 7 years ago

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 commented 7 years ago

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 👍

onetrev commented 7 years ago

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