summaryrefslogtreecommitdiffstats
path: root/tests/testserver/ftp-proxy/ftp-proxy.sh
blob: df9612d2b3366c430f5f73d4de2586d7022b132d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
# Copyright (C) 2018 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

set -ex

# package ftp-proxy

# install configurations and test data
sed -i -e 's/# AllowMagicUser\tno/AllowMagicUser\tyes/' \
    -e 's/# ForkLimit\t\t40/ForkLimit\t\t2000/' \
    /etc/proxy-suite/ftp-proxy.conf

# enable service with installed configurations
ftp-proxy -d