Server 5.0.x: apparently command line license agreement works now.

bradtchapman
Valued Contributor II

So ... I just installed Server 5.0.x tonight on my Mac Mini running Yosemite (10.10.5). There was a question that came up during JNUC about upgrading Server and having a way to accept the license agreement without going through the GUI.

So for shits and giggles I tried:

server setup

It's not documented. And lo and behold, I got the prompt to accept the license agreement just like you do with Xcode.

Post your trip reports here! Can this be automated?

tardis:~ chapman$ sudo server setup
Password:
To use server, you must agree to the terms of the software license agreement.

Press Return to view the software license agreement.

---insert license agreement here---

Do you agree to the terms of the software license agreement? (y/N) y

Administrator access is required to set up OS X Server on this Mac. Type an administrator's user name and password to allow this.
User name: chapman
Password: 

Initializing setup...
Getting server state...
Getting host names...
Writing server settings...
Configuring Service Authentication...
Creating certificates...
Getting certificates...
Renewing certificate...
Enabling server password hashes for local users...
Creating service principals...
Initializing certificates...
Preparing services...
Preparing Caching service...
Preparing Calendar service...
Preparing Profile Manager service...
Preparing File Sharing service...
Preparing Software Update service...
Preparing Messages service...
Preparing Mail service...
Preparing Web service...
Preparing Calendar service...
Preparing Wiki service...
Preparing Calendar service...
Preparing Profile Manager service...
Initializing Wiki...
Initializing Mail...
Initializing VPN...
Initializing Xcode...
Enabling autobuddy for local accounts...
Updating admin password policy...
Checking DNS Configuration...
Reading DNS configuration...
Completing setup...

server encountered errors during setup:

Unknown error
tardis:~ chapman$

I don't know what the 'unknown error' was.

2 REPLIES 2

bentoms
Release Candidate Programs Tester

@bradtchapman very, very nice. I have like 25 mac servers in prod... So this will come in handy.

I feel a blog post with credit to you coming soon!!! :)

donmontalvo
Esteemed Contributor III

Wow, this is a great find. At my last gig we had a ton of Xserves, and the guy responsible for automating Server.app configuration opened tickets with Apple Enterprise Support to make to get this automation possible. I sent a note off to him with a link to this thread as an FYI. @bentoms can't wait to see your blog.

--
https://donmontalvo.com