2023-02-07 19:52:54 +01:00
|
|
|
# Set users and groups names
|
|
|
|
export sftpgo='sftpgo'
|
|
|
|
export servnest='servnest'
|
|
|
|
export knot='knot'
|
|
|
|
export nginx='nginx'
|
2023-04-11 16:14:20 +02:00
|
|
|
export apache='apache'
|
2023-02-07 19:52:54 +01:00
|
|
|
export tor='tor'
|
|
|
|
if [[ $OS = "debian" ]]; then
|
|
|
|
export tor='debian-tor'
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Create system users and groups
|
|
|
|
useradd -U -r -s $(which nologin) $nginx
|
|
|
|
useradd -U -r -s $(which nologin) $servnest
|
|
|
|
useradd -U -r -s $(which nologin) $sftpgo
|
2023-04-11 16:14:20 +02:00
|
|
|
useradd -U -r -s $(which nologin) $apache
|
2023-02-07 19:52:54 +01:00
|
|
|
|
|
|
|
# Execute installation steps
|
|
|
|
source /install/sudo.sh
|
|
|
|
source /install/tor.sh
|
|
|
|
source /install/knot.sh
|
|
|
|
source /install/servnest.sh
|
|
|
|
source /install/php.sh
|
|
|
|
source /install/nginx.sh
|
2023-04-11 16:14:20 +02:00
|
|
|
source /install/apache.sh
|
2023-02-07 19:52:54 +01:00
|
|
|
source /install/sftpgo.sh
|
2023-03-28 00:09:41 +02:00
|
|
|
source /install/certbot.sh
|