57c4797
Ensure correct ownership for singularity.conf on install
57c4797
57c4797
--- a/etc/Makefile.am
57c4797
+++ b/etc/Makefile.am
57c4797
@@ -7,3 +7,8 @@ dist_completion_DATA =  bash_completion.d/singularity
57c4797
 
57c4797
 
57c4797
 MAINTAINERCLEANFILES = Makefile.in
57c4797
+
57c4797
+# On a Debian system, for instance, we can end up with root.staff ownership
57c4797
+# after sudo make install
57c4797
+install-data-hook:
57c4797
+	[ $$(whoami) = root ] && chown root.root $(sysconfdir)/singularity/singularity.conf || true