Fix optional flags
This commit is contained in:
parent
ab4daf41d4
commit
80f456f047
6
setup.sh
6
setup.sh
|
@ -51,7 +51,7 @@ done
|
|||
# Using `nginx-full` would in this case use the Debian/Ubuntu repos, which are a few versions behind.
|
||||
sudo apt install -y nginx openssl curl
|
||||
|
||||
if [[ $INSTALL_ACMESH ]]; then
|
||||
if [[ $INSTALL_ACMESH != 0 ]]; then
|
||||
# Get acme.sh for issuing certificates
|
||||
curl -L https://get.acme.sh/ | sudo bash
|
||||
fi
|
||||
|
@ -67,7 +67,7 @@ chmod -R 600 $SSL_BASE
|
|||
# But I use zsh as the main shell
|
||||
# Therefore I need a shared "environment file" that loads acme.sh
|
||||
# And related environment variables
|
||||
if [[ $INSTALL_ACMESH ]]; then
|
||||
if [[ $INSTALL_ACMESH != 0 ]]; then
|
||||
# Add to ZSH/Bash config files
|
||||
curl -L "$GIST/.acmeenv" > "$HOME/.acmeenv"
|
||||
echo '. "$HOME/.acmeenv"' >> "$HOME/.zshrc";
|
||||
|
@ -90,7 +90,7 @@ curl -L "$GIST/phpfpm.conf" > "$NGINX/phpfpm.conf"
|
|||
# Get the dhparams file generation script, and execute.
|
||||
curl -L "$GIST/generate-dhparams.sh" | sudo bash
|
||||
|
||||
if [[ $DOWNLOAD_DEFAULT ]]; then
|
||||
if [[ $DOWNLOAD_DEFAULT != 0 ]]; then
|
||||
curl -L "$GIST/$DEFAULT_NAME" > "$DEFAULT_DIR/$DEFAULT_NAME"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue