owncloud-archive / vm

Scripts to build an ownCloud community production VM - this was in use until 9.1.x releases. Since 10.0.1 we build appliances with Univention
https://www.univention.de/produkte/univention-app-center/app-katalog/owncloud/
23 stars 14 forks source link

Set ServerName #22

Closed enoch85 closed 9 years ago

enoch85 commented 9 years ago

ServerName is set in check-init.sh so it´s working when the system is booted the first time.

Though, it would be better to set it during build in build-ubuntu-vm.sh. I tried to set it with sudo rights but it didn't work, https://github.com/owncloud/vm/commit/0289363e6602ff23829df4ba4b82517a9ef77058 (this commit was without sudo rights). This is the new commit: https://github.com/owncloud/vm/commit/617b18562e648b76ef8059499a22d6115bf936b3. That´s why I put it in check-init.sh instead, https://github.com/owncloud/vm/commit/ad4657225dfb157a8176d442afa7174409f198b1.

What happens now is that Apache complains during build, and also during the first boot. But ServerName is set during the first boot so the next time your restart the ServerName is there.

Maybe you can help me here @jnweiger ? The command works as root, but I´m not sure how you build it.

enoch85 commented 9 years ago

I fixed it with commit https://github.com/owncloud/vm/commit/d81e756c06aae889be3a446366e4e48a42f31695