25 lines
515 B
Bash
Executable File

#!/bin/bash
PACKAGE_LIST="apache2 php pwgen php-xml php-mbstring php-curl php-mysql mariadb-server dotnet-sdk-8.0 curl"
ENABLE_NANO=1
if [ $ENABLE_NANO -eq 1 ]; then
PACKAGE_LIST+=" nano"
fi
ENABLE_SSH=1
if [ $ENABLE_SSH -eq 1 ]; then
PACKAGE_LIST+=" openssh-server"
fi
apt update
apt install -y $PACKAGE_LIST
# enable apache modules
a2enmod rewrite ssl
# link service
ln -s /usr/lib/systemd/system/mocha-oms.service /etc/systemd/system/multi-user.target.wants/mocha-oms.service
systemctl enable mocha-oms