Skip to content

Commit

Permalink
* Set dir /www-data with www-data as owner, see https://github.com/cl…
Browse files Browse the repository at this point in the history
…icon/clixo\

n/issues/37
  • Loading branch information
olofhagsand committed Jul 26, 2018
1 parent 968435e commit 1566604
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
* Added -l option for clixon_backend for directing syslog to stderr or stdout if running in foreground

### Corrected Bugs

* Setting /www-data with www-data as owner, see https://github.com/clicon/clixon/issues/37

### Known issues
* Namespace name relabeling is not supported.
* Eg: if "des" is defined as prefix for an imported module, then a relabeling using xmlfns is not supported, such as:
Expand Down
7 changes: 5 additions & 2 deletions apps/restconf/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@ bindir = @bindir@
libdir = @libdir@
mandir = @mandir@
libexecdir = @libexecdir@
wwwdir = /www-data
localstatedir = @localstatedir@
sysconfdir = @sysconfdir@
includedir = @includedir@
HOST_VENDOR = @host_vendor@

wwwdir = /www-data
wwwuser = www-data

SH_SUFFIX = @SH_SUFFIX@
CLIXON_MAJOR = @CLIXON_VERSION_MAJOR@
CLIXON_MINOR = @CLIXON_VERSION_MINOR@
Expand Down Expand Up @@ -97,8 +99,9 @@ distclean: clean
# Put other executables in libexec/
# Also create a libexec/ directory for writeable/temporary files.
# Put config file in etc/
# Shouldnt www-dir be owned by www-data?
install: install-lib $(APPL)
install -d -m 0755 $(DESTDIR)$(wwwdir)
install -d -m 0755 -o $(wwwuser) -g $(wwwuser) $(DESTDIR)$(wwwdir)
install -m 0755 $(INSTALLFLAGS) $(APPL) $(DESTDIR)$(wwwdir)

install-lib: $(MYLIB)
Expand Down

1 comment on commit 1566604

@shubhtrix
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍 This will unknowingly saves a lot of time. :)

Please sign in to comment.