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 yum install --assumeyes httpd
24 yum reinstall --assumeyes "$PACKAGE_NAME"
27 microdnf --assumeyes install httpd
28 microdnf --assumeyes reinstall "$PACKAGE_NAME"
31 echo -e "$0: Unknown target '$TARGET'.\n" >&2
36 /usr/local/rvm/bin/rvm-exec default bundle list >"$ARV_PACKAGES_DIR/$PACKAGE_NAME.gems"