2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: AGPL-3.0
9 PACKAGE_NAME="$(basename "$0" | grep -Eo '\barvados.*$')"
10 PACKAGE_NAME=${PACKAGE_NAME%.sh}
12 PACKAGE_NAME=$1; shift
15 if [ "$PACKAGE_NAME" = "arvados-workbench" ]; then
17 cat <<'EOF' >/etc/arvados/config.yml
23 ExternalURL: "https://workbench.xxxxx.example.com"
25 ExternalURL: https://*.collections.xxxxx.example.com/
27 ExternalURL: https://download.xxxxx.example.com
28 ManagementToken: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
29 SystemRootToken: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
31 BlobSigningKey: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
33 SecretKeyBase: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
35 AutoAdminFirstUser: true
39 cd "/var/www/${PACKAGE_NAME%-server}/current"
43 apt-get install -y nginx
44 dpkg-reconfigure "$PACKAGE_NAME"
47 yum install --assumeyes httpd
48 yum reinstall --assumeyes "$PACKAGE_NAME"
51 echo -e "$0: Unknown target '$TARGET'.\n" >&2
56 /usr/local/rvm/bin/rvm-exec default bundle list >"$ARV_PACKAGES_DIR/$PACKAGE_NAME.gems"