2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: AGPL-3.0
6 # Install the supplied string (or a randomly generated token, if none
7 # is given) as an API token that authenticates to the system user
10 # Print the token on stdout.
12 require './lib/create_superuser_token'
13 include CreateSuperUserToken
15 supplied_token = ARGV[0]
17 token = CreateSuperUserToken.create_superuser_token supplied_token