standalone mongodb

This commit is contained in:
miaoski
2020-04-12 14:12:14 +02:00
parent c91e6255ef
commit 7de4f7370f
8 changed files with 91 additions and 15 deletions

View File

@@ -1,4 +1,4 @@
db_uri: mongodb://localhost/open5gs
db_uri: mongodb://MONGO_IP/open5gs
logger:
file: /open5gs/install/var/log/open5gs/pcrf.log

View File

@@ -29,8 +29,8 @@
export IP_ADDR=$(awk 'END{print $1}' /etc/hosts)
cp /mnt/pcrf/pcrf.yaml install/etc/open5gs
sed -i 's|mongodb://localhost/|mongodb://'$HSS_IP'/|g' install/etc/open5gs/pcrf.yaml
sed -i 's|MONGO_IP|'$MONGO_IP'|g' install/etc/open5gs/pcrf.yaml
sed -i 's|NAME|'$NAME'|g' install/etc/open5gs/pcrf.yaml
sed -i 's|REALM|'$REALM'|g' install/etc/open5gs/pcrf.yaml
sed -i 's|PCRF_IP|'$IP_ADDR'|g' install/etc/open5gs/pcrf.yaml
sed -i 's|PGW_IP|'$PGW_IP'|g' install/etc/open5gs/pcrf.yaml
sed -i 's|PGW_IP|'$PGW_IP'|g' install/etc/open5gs/pcrf.yaml