Commit 92dbbb65 authored by w4t's avatar w4t

wtserver 0.09

parent 2b95b8c0
......@@ -5,7 +5,7 @@
InstallMTA() {
local START_TIME=$SECONDS
echo -n -e "$IDENTATION_LVL_0 ${BWhite}Installing MTA ${NC}"
echo -n -e "$IDENTATION_LVL_0 ${BWhite}Installing MTA${NC}\n"
case $CFG_MTA in
"courier")
echo -n -e "$IDENTATION_LVL_1 Installing ${red}Courier ${NC}..."
......
......@@ -109,8 +109,8 @@ InstallWebServer() {
#itt más csomag nevek vannak
apt_install nginx nginx-module-geoip nginx-module-image-filter
systemctl start nginx
systemctl enable nginx
systemctl start nginx >> $PROGRAMS_INSTALL_LOG_FILES 2>&1
systemctl enable nginx >> $PROGRAMS_INSTALL_LOG_FILES 2>&1
#apt_install nginx-core nginx nginx-common nginx-module-geoip nginx-module-image-filter nginx-module-njs nginx-module-perl nginx-module-xslt
......@@ -118,7 +118,7 @@ InstallWebServer() {
mkdir -p /etc/nginx/sites-available /etc/nginx/sites-enabled
rm /etc/nginx/conf.d/default.conf
mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf_old
cp -rp $PWD/distros/debian10/nginx_conf/* /etc/nginx
cp -rp $PWD/distros/debian12/nginx_conf/* /etc/nginx
echo -e "[${green}DONE${NC}]"
## jelesek kellenek a stabil nem mainline-hoz
......@@ -163,7 +163,7 @@ InstallWebServer() {
location ~* "\.(aspx?|bash|bak?|cfg|cgi|dll|exe|git|hg|ini|jsp|log|mdb|out|sql|svn|swp|tar|rdf)$" { deny all; }
location ~* "/(^$|mobiquo|phpinfo|shell|sqlpatch|thumb|thumb_editor|thumbopen|timthumb|webshell)\.php" { deny all; }
EOF
echo -e "[${green}DONE${NC}]"
#echo -e "Nginx Bad Bot Blocker 223 (and growing) Nginx rules to block bad bots...\n"
# Block bad bots V1
#git clone https://github.com/mariusv/nginx-badbot-blocker.git /etc/nginx
......@@ -298,9 +298,9 @@ EOF
fi
echo -n -e "$IDENTATION_LVL_0 ${BWhite}Installing extra PHP and Modules...${NC}"
if [[ "$CFG_PHP_VERSION" == *"php5.5"* ]]; then
#if [[ "$CFG_PHP_VERSION" == *"php5.5"* ]]; then
#InstallPhp55
fi
#fi
if [[ "$CFG_PHP_VERSION" == *"php5.6"* ]]; then
InstallPhp56
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment