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 cd "/var/www/${PACKAGE_NAME%-server}/current"
19 apt-get install -y nginx
20 dpkg-reconfigure "$PACKAGE_NAME"
23 microdnf --assumeyes install httpd
24 microdnf --assumeyes reinstall "$PACKAGE_NAME"
27 echo -e "$0: Unknown target '$TARGET'.\n" >&2
32 /usr/local/rvm/bin/rvm-exec default bundle list >"$ARV_PACKAGES_DIR/$PACKAGE_NAME.gems"