servnest-mkosi/install/install.sh

25 lines
589 B
Bash

# Set users and groups names
export sftpgo='sftpgo'
export servnest='servnest'
export knot='knot'
export nginx='nginx'
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
# 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
source /install/sftpgo.sh
source /install/permissions.sh