BytemarkHosting / symbiosis

A hosting environment that works with you, not against you.
GNU General Public License v2.0
21 stars 14 forks source link

Implement a skeleton directory feature #105

Closed telyn closed 6 years ago

telyn commented 7 years ago

This PR adds a support for a skeleton directory in /etc/symbiosis/skel and, under systemd, watches the /srv directory for new directories. If found, the new directory is assumed to be a domain and populated with a copy of the contents of /etc/symbiosis/skel

This PR also adds a copy of /usr/share/symbiosis/static to /etc/symbiosis/skel/public/htdocs as a first step.

It has been tested successfully and has tests written for it which pass okay. It might be worth adding a test that ensure binary files haven't been altered by the copy.

telyn commented 7 years ago

oh also it adds support for hooks in /etc/symbiosis/skel-hooks.d which get run ... see the HOOKS section in symbiosis-skel's help.