05fc3aef53
Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: Id880c92784c40f3bbde861c0d93f58151c18b9f1 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
37 lines
1.3 KiB
Bash
Executable File
37 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (C) 2018 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
|
|
|
set -ex
|
|
|
|
# package dante-server
|
|
|
|
# add users
|
|
useradd -d /dev/null -s /bin/false qsockstest; echo "qsockstest:$PASS" | chpasswd
|
|
|
|
# install configurations and test data
|
|
cp $TESTDATA/danted{,-authenticating}.conf /etc/
|
|
|
|
# Use the input environment variables to overwrite the default value of internal interfaces.
|
|
if [ "$danted_internal" -a "$danted_internal" != eth0 ]
|
|
then sed -i "s,internal: eth0 port = 1080,internal: $danted_internal port = 1080," /etc/danted.conf
|
|
fi
|
|
|
|
if [ "$danted_auth_internal" -a "$danted_auth_internal" != eth0 ]
|
|
then sed -i "s,internal: eth0 port = 1081,internal: $danted_auth_internal port = 1081," \
|
|
/etc/danted-authenticating.conf
|
|
fi
|
|
|
|
# Use the input environment variables to overwrite the default value of external interfaces.
|
|
if [ "$danted_external" -a "$danted_external" != eth0 ]
|
|
then sed -i "s,external: eth0,external: $danted_external," /etc/danted.conf
|
|
fi
|
|
|
|
if [ "$danted_auth_external" -a "$danted_auth_external" != eth0 ]
|
|
then sed -i "s,external: eth0,external: $danted_auth_external," /etc/danted-authenticating.conf
|
|
fi
|
|
|
|
# enable service with installed configurations
|
|
service danted start
|
|
service danted-authenticating start
|