Maybe this can be of any help for creating a plugin:
https://github.com/haiwen/seaf…le-server_4.1.2_x86-64.sh
It's the first attempt of an automated installation script for the community version of seafile-server.
Concerning the seafile-data directory this can probably help you:
https://forum.seafile-server.o…rver-to-new-directory/250