Skip to content

Commit 266f83b

Browse files
committed
updating dns
1 parent 6053f03 commit 266f83b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

harbor/harbor.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ if [ -z $HARBORVERSION ]; then
6363
fi
6464

6565

66-
hostnamectl set-hostname harbor.$GUID.${DOMAIN}
66+
hostnamectl set-hostname harbor.${DOMAIN}
6767

6868
check_and_start_docker
6969

@@ -78,11 +78,11 @@ then
7878
certbot/dns-route53 \
7979
certonly \
8080
--dns-route53 \
81-
-d "harbor.$GUID.${DOMAIN}" \
81+
-d "harbor.${DOMAIN}" \
8282
--agree-tos \
8383
--email "${EMAIL}" \
8484
--non-interactive
85-
CERTDIR="/etc/letsencrypt/live/harbor.$GUID.${DOMAIN}"
85+
CERTDIR="/etc/letsencrypt/live/harbor.${DOMAIN}"
8686
ls -lath $CERTDIR
8787
fi
8888

@@ -127,8 +127,8 @@ cd /root/harbor
127127
cp harbor.yml.tmpl harbor.yml
128128
sed -i "s/reg.mydomain.com/$IPorFQDN/g" harbor.yml
129129
sed -i "s|# external_url:.*|external_url: https://$IPorFQDN|g" harbor.yml
130-
sed -i "s|certificate: /your/certificate/path|certificate: /etc/letsencrypt/live/harbor.$GUID.${DOMAIN}/fullchain.pem|" harbor.yml
131-
sed -i "s|private_key: /your/private/key/path|private_key: /etc/letsencrypt/live/harbor.$GUID.${DOMAIN}/privkey.pem|" harbor.yml
130+
sed -i "s|certificate: /your/certificate/path|certificate: /etc/letsencrypt/live/harbor.${DOMAIN}/fullchain.pem|" harbor.yml
131+
sed -i "s|private_key: /your/private/key/path|private_key: /etc/letsencrypt/live/harbor.${DOMAIN}/privkey.pem|" harbor.yml
132132
cat harbor.yml
133133
./install.sh
134134
echo -e "Harbor Installation Complete \n\nPlease log out and log in or run the command 'newgrp docker' to use Docker without sudo\n\nLogin to your harbor instance:\n docker login -u admin -p Harbor12345 $IPorFQDN"

0 commit comments

Comments
 (0)