good for today
This commit is contained in:
parent
c031baf491
commit
5bb0d81df5
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ while true; do
|
||||||
sudo chmod 644 "$cert_path"/"$cert_name".crt
|
sudo chmod 644 "$cert_path"/"$cert_name".crt
|
||||||
sudo chmod 600 "$cert_path"/"$cert_name".key
|
sudo chmod 600 "$cert_path"/"$cert_name".key
|
||||||
sudo cp assets/config/nginx/nginx_SSL.conf /etc/nginx/sites-enabled/$(hostname).conf
|
sudo cp assets/config/nginx/nginx_SSL.conf /etc/nginx/sites-enabled/$(hostname).conf
|
||||||
sudo sed -i.backup "s/DOMAIN/$(hostname).local/g" /etc/nginx/sites-enabled/$(hostname).conf
|
sudo sed -i "s/DOMAIN/$(hostname).local/g" /etc/nginx/sites-enabled/$(hostname).conf
|
||||||
sudo sed -i "s/IPADDR/$ip4/g" /etc/nginx/sites-enabled/$(hostname).conf
|
sudo sed -i "s/IPADDR/$ip4/g" /etc/nginx/sites-enabled/$(hostname).conf
|
||||||
sudo sed -i "s|CERTPATH|$cert_path/$cert_name|" /etc/nginx/sites-enabled/$(hostname).conf
|
sudo sed -i "s|CERTPATH|$cert_path/$cert_name|" /etc/nginx/sites-enabled/$(hostname).conf
|
||||||
sudo sed -i "s|KEYPATH|$cert_path/$cert_name|" /etc/nginx/sites-enabled/$(hostname).conf
|
sudo sed -i "s|KEYPATH|$cert_path/$cert_name|" /etc/nginx/sites-enabled/$(hostname).conf
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue