Probably fix the port 80 occupation to issue certificate
This commit is contained in:
@ -54,7 +54,7 @@ start_service() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# install_dependencies
|
# install_dependencies
|
||||||
systemctl stop caddy.service > /dev/null 2>&1
|
# systemctl stop caddy.service > /dev/null 2>&1 # We stopped caddy service just after its installation
|
||||||
|
|
||||||
echo "Generating SSL certificates for $domain..."
|
echo "Generating SSL certificates for $domain..."
|
||||||
certbot certonly --standalone --agree-tos --register-unsafely-without-email -d "$domain"
|
certbot certonly --standalone --agree-tos --register-unsafely-without-email -d "$domain"
|
||||||
@ -70,7 +70,7 @@ start_service() {
|
|||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable hysteria-normal-sub.service > /dev/null 2>&1
|
systemctl enable hysteria-normal-sub.service > /dev/null 2>&1
|
||||||
systemctl start hysteria-normal-sub.service > /dev/null 2>&1
|
systemctl start hysteria-normal-sub.service > /dev/null 2>&1
|
||||||
systemctl restart caddy.service > /dev/null 2>&1
|
# systemctl restart caddy.service > /dev/null 2>&1 # We stopped caddy service just after its installation
|
||||||
systemctl daemon-reload > /dev/null 2>&1
|
systemctl daemon-reload > /dev/null 2>&1
|
||||||
|
|
||||||
if systemctl is-active --quiet hysteria-normal-sub.service; then
|
if systemctl is-active --quiet hysteria-normal-sub.service; then
|
||||||
|
|||||||
@ -54,7 +54,7 @@ start_service() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# install_dependencies
|
# install_dependencies
|
||||||
systemctl stop caddy.service > /dev/null 2>&1
|
# systemctl stop caddy.service > /dev/null 2>&1 # We stopped caddy service just after its installation
|
||||||
|
|
||||||
echo "Generating SSL certificates for $domain..."
|
echo "Generating SSL certificates for $domain..."
|
||||||
certbot certonly --standalone --agree-tos --register-unsafely-without-email -d "$domain"
|
certbot certonly --standalone --agree-tos --register-unsafely-without-email -d "$domain"
|
||||||
@ -74,7 +74,7 @@ start_service() {
|
|||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable hysteria-singbox.service > /dev/null 2>&1
|
systemctl enable hysteria-singbox.service > /dev/null 2>&1
|
||||||
systemctl start hysteria-singbox.service > /dev/null 2>&1
|
systemctl start hysteria-singbox.service > /dev/null 2>&1
|
||||||
systemctl restart caddy.service > /dev/null 2>&1
|
# systemctl restart caddy.service > /dev/null 2>&1 # We stopped caddy service just after its installation
|
||||||
systemctl daemon-reload > /dev/null 2>&1
|
systemctl daemon-reload > /dev/null 2>&1
|
||||||
|
|
||||||
if systemctl is-active --quiet hysteria-singbox.service; then
|
if systemctl is-active --quiet hysteria-singbox.service; then
|
||||||
|
|||||||
@ -27,6 +27,10 @@ install_dependencies() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Stop and disable Caddy service
|
||||||
|
systemctl stop caddy > /dev/null 2>&1
|
||||||
|
systemctl disable caddy > /dev/null 2>&1
|
||||||
|
|
||||||
echo -e "${green}Caddy installed successfully. ${NC}"
|
echo -e "${green}Caddy installed successfully. ${NC}"
|
||||||
}
|
}
|
||||||
update_env_file() {
|
update_env_file() {
|
||||||
|
|||||||
Reference in New Issue
Block a user