10 lines
219 B
Bash
Executable File
10 lines
219 B
Bash
Executable File
#!/bin/bash
|
|
if [ $1 ]
|
|
then
|
|
systemctl stop nginx
|
|
/root/certbot/certbot-auto certonly --standalone --preferred-challenges http -d $1
|
|
systemctl start nginx
|
|
else
|
|
echo "Usage: create_new_cert.sh <newdomain.fqdn>"
|
|
fi
|