2018-02-28 15:48:38 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-05-10 10:06:48 +00:00
|
|
|
# Copyright (C) 2018 The Qt Company Ltd.
|
|
|
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
2018-02-28 15:48:38 +00:00
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
# export variables
|
|
|
|
export USER=qt-test-server
|
|
|
|
export PASS=password
|
2019-03-22 15:20:52 +00:00
|
|
|
export CONFIG=service/testdata
|
2018-02-28 15:48:38 +00:00
|
|
|
export TESTDATA=service/testdata
|
|
|
|
|
|
|
|
# add users
|
|
|
|
useradd -m -s /bin/bash $USER; echo "$USER:$PASS" | chpasswd
|
|
|
|
|
|
|
|
# install configurations and test data
|
|
|
|
su $USER -c "cp $CONFIG/system/passwords ~/"
|
|
|
|
|
2019-03-22 15:20:52 +00:00
|
|
|
./startup.sh "$@"
|