Run tests as appropriate group
Need to add "groupadd" and "groupdel" for Alpine. See: https://github.com/gliderlabs/docker-alpine/issues/326
This commit is contained in:
parent
62401b72d0
commit
3a2ffd4233
16 changed files with 51 additions and 34 deletions
|
|
@ -169,6 +169,8 @@ distclean: clean
|
|||
rm -f Makefile *~ .depend
|
||||
|
||||
install: $(YANGSPECS) $(CLISPECS) $(PLUGINS) $(APPNAME).xml
|
||||
groupadd $(CLICON_GROUP)
|
||||
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)
|
||||
|
|
@ -195,6 +197,8 @@ uninstall:
|
|||
rm -rf $(DESTDIR)$(datarootdir)/$(APPNAME)
|
||||
rm -rf $(DESTDIR)$(localstatedir)/$(APPNAME)
|
||||
rm -rf $(DESTDIR)$(libdir)/$(APPNAME)
|
||||
-userdel $(CLICON_USER)
|
||||
-groupdel $(CLICON_GROUP)
|
||||
|
||||
install-include:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue