Moved and split install of main example config file
This commit is contained in:
parent
16a7fa3837
commit
c703e89bc8
4 changed files with 16 additions and 26 deletions
|
|
@ -171,12 +171,13 @@ clean:
|
|||
distclean: clean
|
||||
rm -f Makefile *~ .depend
|
||||
|
||||
install: $(YANGSPECS) $(CLISPECS) $(PLUGINS) $(APPNAME).xml
|
||||
install: $(YANGSPECS) $(CLISPECS) $(PLUGINS) $(APPNAME).xml restconf.xml autocli.xml
|
||||
[ -n "$$(getent group "$(CLICON_GROUP)")" ] || groupadd "$(CLICON_GROUP)"
|
||||
[ -n "$$(getent passwd "$(CLICON_USER)")" ] || useradd -M -s /usr/sbin/nologin -g "$(CLICON_GROUP)" "$(CLICON_USER)"
|
||||
install -d -m 0755 $(DESTDIR)$(sysconfdir)
|
||||
install -m 0644 $(APPNAME).xml $(DESTDIR)$(sysconfdir)
|
||||
# install -m 0644 $(APPNAME).xml $(DESTDIR)$(CLIXON_DEFAULT_CONFIG)
|
||||
install -d -m 0755 $(DESTDIR)$(sysconfdir)/clixon
|
||||
install -m 0644 $(APPNAME).xml $(DESTDIR)$(sysconfdir)/clixon
|
||||
install -m 0644 autocli.xml $(DESTDIR)$(sysconfdir)/clixon
|
||||
install -m 0644 restconf.xml $(DESTDIR)$(sysconfdir)/clixon
|
||||
install -d -m 0755 $(DESTDIR)$(datarootdir)/$(APPNAME)/yang
|
||||
install -d -m 0755 $(DESTDIR)$(YANG_INSTALLDIR)
|
||||
install -m 0644 $(YANGSPECS) $(DESTDIR)$(YANG_INSTALLDIR)
|
||||
|
|
@ -196,7 +197,7 @@ endif
|
|||
install -d -m 0775 -g $(CLICON_GROUP) $(DESTDIR)$(localstatedir)/run # This is for PID and SOCK
|
||||
|
||||
uninstall:
|
||||
rm -rf $(DESTDIR)$(sysconfdir)/$(APPNAME).xml
|
||||
rm -rf $(DESTDIR)$(sysconfdir)/clixon
|
||||
rm -rf $(DESTDIR)$(datarootdir)/$(APPNAME)
|
||||
rm -rf $(DESTDIR)$(localstatedir)/$(APPNAME)
|
||||
rm -rf $(DESTDIR)$(libdir)/$(APPNAME)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<clixon-config xmlns="http://clicon.org/config">
|
||||
<CLICON_CONFIGFILE>@SYSCONFDIR@/example.xml</CLICON_CONFIGFILE>
|
||||
<CLICON_CONFIGFILE>@SYSCONFDIR@/clixon/example.xml</CLICON_CONFIGFILE>
|
||||
<CLICON_CONFIGDIR>@SYSCONFDIR@/clixon/example</CLICON_CONFIGDIR>
|
||||
<CLICON_FEATURE>ietf-netconf:startup</CLICON_FEATURE>
|
||||
<CLICON_FEATURE>ietf-netconf:confirmed-commit</CLICON_FEATURE>
|
||||
<CLICON_FEATURE>clixon-restconf:allow-auth-none</CLICON_FEATURE>
|
||||
|
|
@ -24,21 +25,4 @@
|
|||
<CLICON_NACM_MODE>disabled</CLICON_NACM_MODE>
|
||||
<CLICON_STREAM_DISCOVERY_RFC5277>true</CLICON_STREAM_DISCOVERY_RFC5277>
|
||||
<CLICON_YANG_LIBRARY>false</CLICON_YANG_LIBRARY>
|
||||
<restconf>
|
||||
<enable>true</enable>
|
||||
<auth-type>none</auth-type>
|
||||
<socket><namespace>default</namespace><address>0.0.0.0</address><port>80</port><ssl>false</ssl></socket>
|
||||
</restconf>
|
||||
<autocli>
|
||||
<module-default>false</module-default>
|
||||
<list-keyword-default>kw-nokey</list-keyword-default>
|
||||
<treeref-state-default>false</treeref-state-default>
|
||||
<edit-mode-default>list container</edit-mode-default>
|
||||
<completion-default>true</completion-default>
|
||||
<rule>
|
||||
<name>include clixon-example</name>
|
||||
<module-name>clixon-example</module-name>
|
||||
<operation>enable</operation>
|
||||
</rule>
|
||||
</autocli>
|
||||
</clixon-config>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue