I notice one thing that the seafile doesn't restart after OMV reboot because the path in the script is call seafile-server-latest but the installation directory is named seafile-server-5.1.2.
Therefore, you need to do this change: mv seafile-server-5.1.2/ seafile-server-latest
Then reboot the server or perform: service seafile-server restart