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
|
|
|
|
2019-10-23 08:08:15 +02:00
|
|
|
# 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
|
|
|
|
|
|
|
|
sed "s|/your/certificate/path|/data/cert/server.crt|g" -i make/harbor.yml
|
|
|
|
sed "s|/your/private/key/path|/data/cert/server.key|g" -i make/harbor.yml
|