mirror of
https://github.com/itiligent/Easy-Guacamole-Installer.git
synced 2025-12-13 18:02:32 +00:00
save refeshed certs to new dir
This commit is contained in:
parent
9967087257
commit
7f0b177f7a
2 changed files with 11 additions and 4 deletions
|
|
@ -50,6 +50,12 @@ PROXY_SITE=
|
||||||
CERT_DAYS=
|
CERT_DAYS=
|
||||||
DEFAULT_IP=
|
DEFAULT_IP=
|
||||||
|
|
||||||
|
# Create a place to save the certs so we don't overwrite any earlier versions
|
||||||
|
CERT_DIR_NAME=tls-certs-$(date +%y.%m.%d-%H_%M)
|
||||||
|
CERT_DIR=$DOWNLOAD_DIR/$CERT_DIR_NAME
|
||||||
|
mkdir -p $CERT_DIR
|
||||||
|
cd $CERT_DIR
|
||||||
|
|
||||||
# Setup script cmd line arguments for proxy site and certificate days
|
# Setup script cmd line arguments for proxy site and certificate days
|
||||||
TLSNAME=$1
|
TLSNAME=$1
|
||||||
TLSDAYS=$2
|
TLSDAYS=$2
|
||||||
|
|
|
||||||
|
|
@ -35,11 +35,12 @@ echo
|
||||||
echo -e "${LGREEN}Cresting self signed TLS certificates for Nginx...${GREY}"
|
echo -e "${LGREEN}Cresting self signed TLS certificates for Nginx...${GREY}"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
# Create a place to save the certs so we don't overwrite any earlier versions
|
||||||
USER_HOME_DIR=$(eval echo ~${SUDO_USER})
|
USER_HOME_DIR=$(eval echo ~${SUDO_USER})
|
||||||
CERT_DIR=tls-certs-$(date +%y.%m.%d-%H_%M)
|
CERT_DIR_NAME=tls-certs-$(date +%y.%m.%d-%H_%M)
|
||||||
WORKING_DIR=$USER_HOME_DIR/guac-setup/$CERT_DIR
|
CERT_DIR=$USER_HOME_DIR/guac-setup/$CERT_DIR_NAME
|
||||||
mkdir -p $WORKING_DIR
|
mkdir -p $CERT_DIR
|
||||||
cd $WORKING_DIR
|
cd $CERT_DIR
|
||||||
|
|
||||||
# Set default certificate file destinations. Change these for other TLS applications.
|
# Set default certificate file destinations. Change these for other TLS applications.
|
||||||
DIR_SSL_KEY="/etc/nginx/ssl/private"
|
DIR_SSL_KEY="/etc/nginx/ssl/private"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue