Update 'Extra_Domains/Apache_Domain.sh'
This commit is contained in:
@@ -29,60 +29,7 @@ a2ensite $domain.conf
|
||||
##----------------##
|
||||
|
||||
# Redirect phpmyadmin -> database
|
||||
ln -s /usr/share/phpmyadmin /var/www/"$domain"/html
|
||||
mv /var/www/"$domain"/html/phpmyadmin /var/www/"$domain"/html/database
|
||||
|
||||
##-------------##
|
||||
# Postfix #
|
||||
##-------------##
|
||||
|
||||
#debconf-set-selections <<< "postfix postfix/mailname string $domain"
|
||||
#debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'"
|
||||
#apt install -y mailutils
|
||||
sed -i 's/#inet_interfaces = all/inet_interfaces = loopback-only/g' /etc/postfix/main.cf
|
||||
sed -i 's/mydestination/#mydestination/g' /etc/postfix/main.cf
|
||||
sed -i 's/relayhost =/mydestination = '$domain', localhost.'$domain', '$domain'/g' /etc/postfix/main.cf
|
||||
cat <<EOF > /etc/aliases
|
||||
# See man 5 aliases for format
|
||||
postmaster: root
|
||||
root: $email
|
||||
EOF
|
||||
newaliases
|
||||
|
||||
##-------------##
|
||||
# Netdata #
|
||||
##-------------##
|
||||
|
||||
#if [ $netdata = 1 ]; then
|
||||
# apt install -y netdata
|
||||
# sed -i 's/SEND_EMAIL="YES"/SEND_EMAIL="NO"/g' /etc/netdata/health_alarm_notify.conf
|
||||
# ufw allow 19999/tcp
|
||||
# systemctl stop netdata
|
||||
# systemctl disable netdata
|
||||
#fi
|
||||
|
||||
##---------------##
|
||||
# Memcached #
|
||||
##---------------##
|
||||
|
||||
#if [ $memcached = 1 ]; then
|
||||
# apt install -y memcached
|
||||
# systemctl stop memcached
|
||||
# systemctl disable memcached
|
||||
#fi
|
||||
|
||||
##-----------##
|
||||
# Redis #
|
||||
##-----------##
|
||||
|
||||
#if [ $redis = 1 ]; then
|
||||
# apt install -y redis-server
|
||||
# sed -i 's/supervised no/supervised systemd/g' /etc/redis/redis.conf
|
||||
# sed -i 's/# bind 127.0.0.1 ::1/bind 127.0.0.1 ::1/g' /etc/redis/redis.conf
|
||||
# sed -i 's/# requirepass foobared/requirepass '$password'/g' /etc/redis/redis.conf
|
||||
# systemctl stop redis
|
||||
# systemctl disable redis
|
||||
#fi
|
||||
ln -s /usr/share/phpmyadmin /var/www/"$domain"/html/database
|
||||
|
||||
##-------------##
|
||||
# Certbot #
|
||||
|
||||
Reference in New Issue
Block a user