blob: 8ebaac8fa844ab3ee8d7cbd746b092080263c05f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/bash
set -e
if [ $# -ne 1 ]; then
echo "Usage: $0 <vespa version>"
echo "This script should not be called manually."
exit 1
fi
DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
cd $DIR
VESPA_VERSION=$1
rpm -i "vespa*-${VESPA_VERSION}-*.rpm"
# Workaround until we figure out why rpm does not set the ownership.
chown -R vespa:vespa /opt/vespa
/opt/vespa/bin/vespa-start-configserver
/opt/vespa/bin/vespa-start-services
# Sleep forever
tail -f /dev/null
|