Commit 4753e831 authored by Alejandro Alvarez Ayllon's avatar Alejandro Alvarez Ayllon
Browse files

Make sure bootstrap.sh does not overwrite hostcert

parent 29fee6a4
Pipeline #303139 passed with stage
in 15 seconds
......@@ -48,8 +48,10 @@ setenforce 0
sed "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config -i
# Need a self-signed certificate, which can be replaced later on
openssl req -x509 -newkey rsa:2048 -keyout "/etc/grid-security/hostkey.pem" -out "/etc/grid-security/hostcert.pem" -days 365 -nodes -subj '/CN=self-signed-rest'
chmod 0400 "/etc/grid-security/hostkey.pem"
if [[ ! -f "/etc/grid-security/hostcert.pem" ]]; then
openssl req -x509 -newkey rsa:2048 -keyout "/etc/grid-security/hostkey.pem" -out "/etc/grid-security/hostcert.pem" -days 365 -nodes -subj '/CN=self-signed-rest'
chmod 0400 "/etc/grid-security/hostkey.pem"
fi
# Start apache
systemctl enable httpd
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment