Skip to content
This repository has been archived by the owner on Jan 16, 2020. It is now read-only.

Error attempting to add new domain ssl #40

Open
nickrouty opened this issue May 26, 2017 · 5 comments
Open

Error attempting to add new domain ssl #40

nickrouty opened this issue May 26, 2017 · 5 comments

Comments

@nickrouty
Copy link

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
Copy link

Same here!

@DoFox
Copy link

DoFox commented Jun 20, 2017

Same here now

@caroseuk
Copy link
Contributor

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
Copy link
Contributor

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
Copy link

onetrev commented Oct 2, 2017

A believe this issue is already listed here: #13

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants