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

startup script #31

Closed miche7 closed 8 years ago

miche7 commented 8 years ago

Hello,

First of all thank you for your great tool to use owncloud fairly simple.

I had a question: Is it possible to disable the automatic startup script in the virtual machine? I say this because every time I start the virtual machine, start the scripts and change config.php

Furthermore, every time I want to connect to the machine via ssh, the configuration script is run: +------------------------------------------------- + -------------- + This Will do the final setup script for you
- Change keyboard setup (current is US)
- Change timezone
- Set new passwords to Ubuntu and ownCloud (user: admin)

------------------------------------------------- + -------------- +

Thanking you,

Many greetings,

JKawohl commented 8 years ago

Hey @miche7 thanks for pointing this out:

The problem is in the setup-when-admin.sh script. Maybe @jnweiger or @enoch85 have an idea how to fix this?

We need an if/else statement but i´m not sure which config.log or so to use for the condition.

JKawohl commented 8 years ago

@miche7

here is the quick "dirty" hack just interrupt the setup script by typing ctrl+c With tomorrows build there will be a notification about this.

It runs after every reboot, so that the admin user is able to reset his password if forgotten.......

enoch85 commented 8 years ago

@Kawohl Here is another if argument that I used to solve another issue. Feel free to implement. :) https://github.com/owncloud/vm/blob/master/vagrant/oc8ce/check-init.sh#L68-L76

@miche7 We could delete it after it's run, that was my first suggestion but we choose to keep it if you as a user wanted to run it several times.

miche7 commented 8 years ago

@enoch85 You mean that I have to delete the file setup-when-admin.sh?

enoch85 commented 8 years ago

@miche7 That would be one workaround, yes. But not optimal. Like @Kawohl said it's better with an if argument of some kind.