Skip to content

Commit ef312f9

Browse files
committed
remove features available in wordops
1 parent 5d61785 commit ef312f9

File tree

2 files changed

+17
-101
lines changed

2 files changed

+17
-101
lines changed

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
- ClamAV Antivirus
1616
- Netdata
1717
- Proftpd
18-
- Acme.sh with [ee-acme-sh](https://virtubox.github.io/ee-acme-sh/)
1918

2019
* * *
2120

@@ -26,7 +25,6 @@
2625
- Automated MariaDB server or client installation (10.1/10.2/10.3)
2726
- Linux server tweaks
2827
- [WordOps](https://github.com/WordOps/WordOps) automated installation
29-
- php7.2-fpm/php7.3-fpm installation & configuration
3028
- Latest Nginx release compiled with [nginx-ee](https://virtubox.github.io/nginx-ee/)
3129
- UFW configuration with custom SSH port
3230
- Fail2ban Installation & Configuration

wo-nginx-setup.sh

+17-99
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# -------------------------------------------------------------------------
33
# WO-NGINX-SETUP - automated WordOps server setup script
44
# -------------------------------------------------------------------------
@@ -21,7 +21,7 @@ CGREEN="${CSI}1;32m"
2121
EXTPLORER_VER="2.1.10"
2222
WO_DASHBOARD_INSTALL="y"
2323
MARIADB_SERVER_INSTALL="y"
24-
PHP73_INSTALL="n"
24+
2525

2626
##################################
2727
# Check if user is root
@@ -587,33 +587,26 @@ if [ -z "$WO_PREVIOUS_INSTALL" ]; then
587587
echo " Installing WordOps Stack"
588588
echo "##########################################"
589589

590-
if [ -d /etc/mysql ]; then
591-
# install nginx, php, postfix, memcached
592590
/usr/local/bin/wo stack install
593-
# install php7, redis, easyengine backend & phpredisadmin
594-
/usr/local/bin/wo stack install --redis --php73 --admin --phpredisadmin
595-
else
596-
/usr/local/bin/wo stack install --nginx --php73 --redis --wpcli
597-
fi
598591

599592
##################################
600593
# Fix phpmyadmin install
601594
##################################
602-
echo "##########################################"
603-
echo " Updating phpmyadmin"
604-
echo "##########################################"
605-
606-
# install composer
607-
cd ~/ || exit
608-
curl -sS https://getcomposer.org/installer | php
609-
mv composer.phar /usr/bin/composer
610-
611-
# change owner of /var/www to allow composer cache
612-
chown www-data:www-data /var/www
613-
# update phpmyadmin with composer
614-
if [ -d /var/www/22222/htdocs/db/pma ]; then
615-
sudo -u www-data -H composer update -d /var/www/22222/htdocs/db/pma/
616-
fi
595+
# echo "##########################################"
596+
# echo " Updating phpmyadmin"
597+
# echo "##########################################"
598+
599+
# # install composer
600+
# cd ~/ || exit
601+
# curl -sS https://getcomposer.org/installer | php
602+
# mv composer.phar /usr/bin/composer
603+
604+
# # change owner of /var/www to allow composer cache
605+
# chown www-data:www-data /var/www
606+
# # update phpmyadmin with composer
607+
# if [ -d /var/www/22222/htdocs/db/pma ]; then
608+
# sudo -u www-data -H composer update -d /var/www/22222/htdocs/db/pma/
609+
# fi
617610

618611
##################################
619612
# Allow www-data shell access for SFTP + add .bashrc settings et completion
@@ -701,23 +694,6 @@ echo "##########################################"
701694
echo " Configuring Nginx"
702695
echo "##########################################"
703696

704-
[ -d /etc/nginx/common ] && {
705-
706-
# php7.1 & 7.2 common configurations
707-
708-
cp -rf $HOME/ubuntu-nginx-web-server/etc/nginx/common/* /etc/nginx/common/
709-
710-
# commit changes
711-
git -C /etc/nginx/ add /etc/nginx/ && git -C /etc/nginx/ commit -m "update common configurations"
712-
713-
}
714-
715-
# common nginx configurations
716-
717-
cp -rf $HOME/ubuntu-nginx-web-server/etc/nginx/conf.d/* /etc/nginx/conf.d/
718-
cp -f $HOME/ubuntu-nginx-web-server/etc/nginx/proxy_params /etc/nginx/proxy_params
719-
cp -f $HOME/ubuntu-nginx-web-server/etc/nginx/mime.types /etc/nginx/mime.types
720-
721697
# commit changes
722698
git -C /etc/nginx/ add /etc/nginx/ && git -C /etc/nginx/ commit -m "update conf.d configurations"
723699

@@ -853,43 +829,6 @@ fi
853829

854830
if [ "$WO_DASHBOARD_INSTALL" = "y" ]; then
855831

856-
##################################
857-
# Install Netdata
858-
##################################
859-
860-
if [ ! -d /etc/netdata ]; then
861-
echo "##########################################"
862-
echo " Installing Netdata"
863-
echo "##########################################"
864-
865-
## optimize netdata resources usage
866-
echo 1 >/sys/kernel/mm/ksm/run
867-
echo 1000 >/sys/kernel/mm/ksm/sleep_millisecs
868-
869-
## install nedata
870-
wget -O kickstart.sh https://my-netdata.io/kickstart.sh
871-
chmod +x kickstart.sh
872-
./kickstart.sh all --dont-wait >>/tmp/ubuntu-nginx-web-server.log 2>&1
873-
rm kickstart.sh
874-
875-
if [ "$MARIADB_SERVER_INSTALL" = "y" ]; then
876-
mysql -e "create user 'netdata'@'localhost';"
877-
mysql -e "grant usage on *.* to 'netdata'@'localhost';"
878-
mysql -e "flush privileges;"
879-
elif [ "$MARIADB_CLIENT_INSTALL" = "y" ]; then
880-
mysql -e "create user 'netdata'@'%';"
881-
mysql -e "grant usage on *.* to 'netdata'@'%';"
882-
mysql -e "flush privileges;"
883-
fi
884-
885-
## disable email notifigrep -cions
886-
sudo sed -i 's/SEND_EMAIL="YES"/SEND_EMAIL="NO"/' /usr/lib/netdata/conf.d/health_alarm_notify.conf
887-
sudo service netdata restart
888-
889-
fi
890-
891-
892-
893832
##################################
894833
# Install EasyEngine Dashboard
895834
##################################
@@ -919,27 +858,6 @@ if [ "$WO_DASHBOARD_INSTALL" = "y" ]; then
919858

920859
fi
921860

922-
##################################
923-
# Install Acme.sh
924-
##################################
925-
926-
echo "##########################################"
927-
echo " Installing Acme.sh"
928-
echo "##########################################"
929-
930-
# install acme.sh if needed
931-
echo ""
932-
echo "checking if acme.sh is already installed"
933-
echo ""
934-
if [ ! -f $HOME/.acme.sh/acme.sh ]; then
935-
echo ""
936-
937-
echo ""
938-
wget -O - https://get.acme.sh | sh
939-
cd || exit
940-
source $HOME/.bashrc
941-
fi
942-
943861
##################################
944862
# Install cheat.sh
945863
##################################

0 commit comments

Comments
 (0)