Skip to content

Commit

Permalink
[docker]: Add a status file to mark that the file is generated by son…
Browse files Browse the repository at this point in the history
…ic-config-engine (#211)
  • Loading branch information
taoyl-ms authored and Shuotian Cheng committed Jan 25, 2017
1 parent 6d8f576 commit 1b49499
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dockers/docker-fpm/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ sonic-cfggen -m /etc/sonic/minigraph.xml -t /etc/swss/bgp/unisolate.j2 >/usr/sbi
chown root:root /usr/sbin/bgp-unisolate
chmod 0755 /usr/sbin/bgp-unisolate

mkdir -p /var/sonic
echo "# Config files managed by sonic-config-engine" >/var/sonic/config_status

3 changes: 3 additions & 0 deletions dockers/docker-lldp-sv2/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@

sonic-cfggen -m /etc/sonic/minigraph.xml -t /etc/swss/lldp/lldpd.conf.j2 >/etc/lldpd.conf

mkdir -p /var/sonic
echo "# Config files managed by sonic-config-engine" >/var/sonic/config_status

3 changes: 3 additions & 0 deletions dockers/docker-platform-monitor/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ mkdir -p /etc/sensors.d
hwsku=`sonic-cfggen -m /etc/sonic/minigraph.xml -v minigraph_hwsku`
/bin/cp -rf /usr/share/sonic/$hwsku/sensors.conf /etc/sensors.d/

mkdir -p /var/sonic
echo "# Config files managed by sonic-config-engine" >/var/sonic/config_status

2 changes: 2 additions & 0 deletions dockers/docker-snmp-sv2/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ sonic-cfggen -m /etc/sonic/minigraph.xml -y /etc/sonic/snmp.yml -t /etc/swss/snm
hwsku=`sonic-cfggen -m /etc/sonic/minigraph.xml -v minigraph_hwsku`
/bin/cp -rf /usr/share/sonic/$hwsku/alias_map.json /etc/snmp/

mkdir -p /var/sonic
echo "# Config files managed by sonic-config-engine" >/var/sonic/config_status

3 changes: 3 additions & 0 deletions dockers/docker-teamd/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ for pc in `sonic-cfggen -m /etc/sonic/minigraph.xml --var-keys minigraph_portcha
sonic-cfggen -m /etc/sonic/minigraph.xml -a '{"pc":"'$pc'"}' -t /etc/swss/teamd/teamd.j2 >/etc/teamd/$pc.conf
done

mkdir -p /var/sonic
echo "# Config files managed by sonic-config-engine" >/var/sonic/config_status

0 comments on commit 1b49499

Please sign in to comment.