2016-06-07 04:19:48 +00:00
|
|
|
#!/bin/bash
|
|
|
|
IP=`ip addr s eth0 |grep "inet "|awk '{print $2}' |awk -F "/" '{print $1}'`
|
2017-03-20 10:51:20 +00:00
|
|
|
|
2016-06-15 04:57:04 +00:00
|
|
|
#echo $IP
|
2018-11-15 03:09:57 +00:00
|
|
|
sudo sed "s/reg.mydomain.com/$IP/" -i make/harbor.yml
|
2019-04-29 07:23:22 +00:00
|
|
|
|
|
|
|
echo "https:" >> make/harbor.yml
|
|
|
|
echo " certificate: /data/cert/server.crt" >> make/harbor.yml
|
2019-10-17 04:00:51 +00:00
|
|
|
echo " private_key: /data/cert/server.key" >> make/harbor.yml
|
|
|
|
|
|
|
|
# TODO: remove it when scanner adapter support internal access of harbor
|
|
|
|
echo "storage_service:" >> make/harbor.yml
|
|
|
|
echo " ca_bundle: /data/cert/server.crt" >> make/harbor.yml
|