Probably fix the port 80 occupation to issue certificate

This commit is contained in:
Iam54r1n4
2025-02-09 03:00:57 +00:00
parent 99935d99b6
commit 989fb5650b
3 changed files with 8 additions and 4 deletions

View File

@ -54,7 +54,7 @@ start_service() {
fi
# 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..."
certbot certonly --standalone --agree-tos --register-unsafely-without-email -d "$domain"
@ -70,7 +70,7 @@ start_service() {
systemctl daemon-reload
systemctl enable 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
if systemctl is-active --quiet hysteria-normal-sub.service; then

View File

@ -54,7 +54,7 @@ start_service() {
fi
# 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..."
certbot certonly --standalone --agree-tos --register-unsafely-without-email -d "$domain"
@ -74,7 +74,7 @@ start_service() {
systemctl daemon-reload
systemctl enable 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
if systemctl is-active --quiet hysteria-singbox.service; then

View File

@ -27,6 +27,10 @@ install_dependencies() {
exit 1
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}"
}
update_env_file() {