2016-06-07 06:19:48 +02:00
|
|
|
#!/bin/bash
|
|
|
|
IP=`ip addr s eth0 |grep "inet "|awk '{print $2}' |awk -F "/" '{print $1}'`
|
2017-03-20 11:51:20 +01:00
|
|
|
|
2016-06-15 06:57:04 +02:00
|
|
|
#echo $IP
|
2018-11-15 04:09:57 +01:00
|
|
|
sudo sed "s/reg.mydomain.com/$IP/" -i make/harbor.yml
|
2019-04-29 09:23:22 +02:00
|
|
|
|
|
|
|
echo "https:" >> make/harbor.yml
|
|
|
|
echo " certificate: /data/cert/server.crt" >> make/harbor.yml
|
2019-10-17 06:00:51 +02: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
|