diff --git a/README.md b/README.md index 601cd7a..5e15d5b 100644 --- a/README.md +++ b/README.md @@ -1,89 +1,104 @@ -### TuxLite Readme - -TuxLite is a free collection of shell scripts for rapid deployment of -LAMP and LNMP stacks (Linux, Apache/Nginx, MySQL and PHP) for Debian and -Ubuntu. - -Have you considered upgrading from shared hosting to a VPS or dedicated -server but held off by the costly control panel licenses, or the fear of -managing a Linux server? Now you can leave those worries behind! - -TuxLite scripts automate configuration of servers for web hosting, -so your websites can be online within minutes! Ideal for those who -prefer hosting sites on their own server without resorting to expensive -and bloated control panels. - -The following are installed:- - -- Apache2 with mpm\_event or Nginx -- MySQL, MariaDB or Percona -- PHP-FPM + commonly used PHP modules -- Postfix mail server (securely configured to be outgoing only) -- Varnish cache (optional) - -For more detailed explanation on the installation, usage and script features, -kindly refer to these links:- - -[Installation](http://tuxlite.com/installation/) - -[Script features](http://tuxlite.com/script-details/) - -[Download](http://tuxlite.com/download/) - -### Quick Install (Git) - - # Install git and clone TuxLite - aptitude install git - git clone https://github.com/Mins/TuxLite.git - cd TuxLite - - # Edit options to enter server IP, MySQL password etc. - nano options.conf - - # Make all scripts executable. - chmod 700 *.sh - chmod 700 options.conf - - # Install LAMP or LNMP stack. - ./install.sh - - # Add a new Linux user and add domains to the user. - adduser johndoe - ./domain.sh add johndoe yourdomain.com - ./domain.sh add johndoe subdomain.yourdomain.com - - # Install Adminer or phpMyAdmin - ./setup.sh dbgui - - # Enable/disable public viewing of Adminer/phpMyAdmin - ./domain.sh dbgui on - ./domain.sh dbgui off - -### Requirements - -- Supports Debian 6, 7 and 8, Ubuntu 12.04, 12.10, 13.04, 13.10 and 14.04. -- A server with at least 80MB RAM. 256MB and above recommended. -- Basic Linux knowledge. You will need know how to connect to your - server remotely. -- Basic text editor knowledge. For beginners, learning GNU nano is - recommended. - -If this is your first time with a Linux server, I suggest spending a day -reading the "getting started" tutorials in Linode Library. - -### Why use TuxLite? - -- TuxLite LAMP stack configures Apache with mpm\_event and PHP with - fastcgi (PHP-FPM). This gives much higher performance and lower memory - consumption than the regular LAMP tutorials/guides using mod\_php. -- Uses official distribution packages. You are not at the mercy of the - script maintainer to keep your servers updated. All installed - software are tuned, optimized and secured. -- Minimal resource usage. Fresh install requires only 50-60MB RAM. -- Free from unnecessary or custom changes to your server. Everything - is configured according to Debian/Ubuntu standards. -- Automatic virtualhost configuration with log rotation, AWStats - traffic statistics and phpMyAdmin for managing MySQL. -- Varnish cache script included to turbo charge your websites. -- Free and open source! Coded in a human readable manner and - modular, making custom modifications extremely easy. +Modified to work with DEBIAN 11 bullseye and PHP 8.1 + +### TuxLite Readme + +TuxLite is a free collection of shell scripts for rapid deployment of +LAMP and LNMP stacks (Linux, Apache/Nginx, MySQL and PHP) for Debian and +Ubuntu. + +Have you considered upgrading from shared hosting to a VPS or dedicated +server but held off by the costly control panel licenses, or the fear of +managing a Linux server? Now you can leave those worries behind! + +TuxLite scripts automate configuration of servers for web hosting, +so your websites can be online within minutes! Ideal for those who +prefer hosting sites on their own server without resorting to expensive +and bloated control panels. + +The following are installed:- + +- Apache2 with mpm\_event or Nginx +- MySQL, MariaDB or Percona +- PHP-FPM + commonly used PHP modules +removed Postfix mail server (securely configured to be outgoing only) +- Varnish cache (optional) + +For more detailed explanation on the installation, usage and script features, +kindly refer to these links:- + + +### Quick Install (Git) + + # Install git and clone TuxLite + apt install git + git clone https://github.com/Almazick/TuxLite + cd TuxLite + + # Edit options to enter server IP, MySQL password etc. + nano options.conf + + # Make all scripts executable. + chmod 700 *.sh + chmod 700 options.conf + + # Install LAMP or LNMP stack. + ./install.sh + + # Add a new Linux user and add domains to the user. + adduser johndoe + ./domain.sh add johndoe yourdomain.com + ./domain.sh add johndoe subdomain.yourdomain.com + + # Install Adminer or phpMyAdmin + ./setup.sh dbgui + + # Enable/disable public viewing of Adminer/phpMyAdmin + ./domain.sh dbgui on + ./domain.sh dbgui off + + #Setup MariaDB password. Type line by line + #To secure the MariaDB installation, run the next command to improve security of your MySQL server installation. + # $ mysql_secure_installation + # or + mysql -uroot + GRANT ALL ON *.* TO 'admin'@'localhost' IDENTIFIED BY 'MyNewPassword' WITH GRANT OPTION; + FLUSH PRIVILEGES; + + or + + mysql -uroot + ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPassword'; + flush privileges; + exit; + + then try to login as + mysql -uroot -pMyNewPassword + +### Requirements + +- Supports Debian 11, Ubuntu 12.04, 12.10, 13.04, 13.10 and 14.04. +- A server with at least 80MB RAM. 256MB and above recommended. +- Basic Linux knowledge. You will need know how to connect to your + server remotely. +- Basic text editor knowledge. For beginners, learning GNU nano is + recommended. + +If this is your first time with a Linux server, I suggest spending a day +reading the "getting started" tutorials in Linode Library. + +### Why use TuxLite? + +- TuxLite LAMP stack configures Apache with mpm\_event and PHP with + fastcgi (PHP-FPM). This gives much higher performance and lower memory + consumption than the regular LAMP tutorials/guides using mod\_php. +- Uses official distribution packages. You are not at the mercy of the + script maintainer to keep your servers updated. All installed + software are tuned, optimized and secured. +- Minimal resource usage. Fresh install requires only 50-60MB RAM. +- Free from unnecessary or custom changes to your server. Everything + is configured according to Debian/Ubuntu standards. +- Automatic virtualhost configuration with log rotation, AWStats + traffic statistics and phpMyAdmin for managing MySQL. +- Varnish cache script included to turbo charge your websites. +- Free and open source! Coded in a human readable manner and + modular, making custom modifications extremely easy. diff --git a/domain.sh b/domain.sh index 3a527f2..3cafd89 100644 --- a/domain.sh +++ b/domain.sh @@ -83,26 +83,26 @@ function reload_webserver { function php_fpm_add_user { # Copy over FPM template for this Linux user if it doesn't exist - if [ ! -e /etc/php5/fpm/pool.d/$DOMAIN_OWNER.conf ]; then - cp /etc/php5/fpm/pool.d/{www.conf,$DOMAIN_OWNER.conf} + if [ ! -e /etc/php/8.1/fpm/pool.d/$DOMAIN_OWNER.conf ]; then + cp /etc/php/8.1/fpm/pool.d/{www.conf,$DOMAIN_OWNER.conf} # Change pool user, group and socket to the domain owner - sed -i 's/^\[www\]$/\['${DOMAIN_OWNER}'\]/' /etc/php5/fpm/pool.d/$DOMAIN_OWNER.conf - sed -i 's/^listen =.*/listen = \/var\/run\/php5-fpm-'${DOMAIN_OWNER}'.sock/' /etc/php5/fpm/pool.d/$DOMAIN_OWNER.conf - sed -i 's/^user = www-data$/user = '${DOMAIN_OWNER}'/' /etc/php5/fpm/pool.d/$DOMAIN_OWNER.conf - sed -i 's/^group = www-data$/group = '${DOMAIN_OWNER}'/' /etc/php5/fpm/pool.d/$DOMAIN_OWNER.conf - sed -i 's/^;listen.mode =.*/listen.mode = 0660/' /etc/php5/fpm/pool.d/$DOMAIN_OWNER.conf + sed -i 's/^\[www\]$/\['${DOMAIN_OWNER}'\]/' /etc/php/8.1/fpm/pool.d/$DOMAIN_OWNER.conf + sed -i 's/^listen =.*/listen = \/var\/run\/php-fpm-'${DOMAIN_OWNER}'.sock/' /etc/php/8.1/fpm/pool.d/$DOMAIN_OWNER.conf + sed -i 's/^user = www-data$/user = '${DOMAIN_OWNER}'/' /etc/php/8.1/fpm/pool.d/$DOMAIN_OWNER.conf + sed -i 's/^group = www-data$/group = '${DOMAIN_OWNER}'/' /etc/php/8.1/fpm/pool.d/$DOMAIN_OWNER.conf + sed -i 's/^;listen.mode =.*/listen.mode = 0660/' /etc/php/8.1/fpm/pool.d/$DOMAIN_OWNER.conf if [ $USE_NGINX_ORG_REPO = "yes" ]; then - sed -i 's/^;listen.owner =.*/listen.owner = nginx/' /etc/php5/fpm/pool.d/$DOMAIN_OWNER.conf - sed -i 's/^;listen.group =.*/listen.group = nginx/' /etc/php5/fpm/pool.d/$DOMAIN_OWNER.conf + sed -i 's/^;listen.owner =.*/listen.owner = nginx/' /etc/php/8.1/fpm/pool.d/$DOMAIN_OWNER.conf + sed -i 's/^;listen.group =.*/listen.group = nginx/' /etc/php/8.1/fpm/pool.d/$DOMAIN_OWNER.conf else - sed -i 's/^;listen.owner =.*/listen.owner = www-data/' /etc/php5/fpm/pool.d/$DOMAIN_OWNER.conf - sed -i 's/^;listen.group =.*/listen.group = www-data/' /etc/php5/fpm/pool.d/$DOMAIN_OWNER.conf + sed -i 's/^;listen.owner =.*/listen.owner = www-data/' /etc/php/8.1/fpm/pool.d/$DOMAIN_OWNER.conf + sed -i 's/^;listen.group =.*/listen.group = www-data/' /etc/php/8.1/fpm/pool.d/$DOMAIN_OWNER.conf fi fi - service php5-fpm restart + service php8.1-fpm restart } # End function php_fpm_add_user @@ -110,7 +110,8 @@ function php_fpm_add_user { function add_domain { # Create public_html and log directories for domain - mkdir -p $DOMAIN_PATH/{logs,public_html} + rm /etc/nginx/sites-enabled/default + mkdir -p $DOMAIN_PATH/{logs,public_html} touch $DOMAIN_PATH/logs/{access.log,error.log} cat > $DOMAIN_PATH/public_html/index.html < @@ -278,7 +279,7 @@ EOF # With PHP5-FPM, you need to create another PHP5-FPM pool for SSL connections # Adding the same fastcgiexternalserver line here will result in an error - Alias /php5-fcgi $DOMAIN_PATH + Alias /php-fcgi $DOMAIN_PATH SSLEngine on SSLCertificateFile /etc/ssl/localcerts/webserver.pem diff --git a/install.sh b/install.sh index 926cbe4..cc6b31a 100644 --- a/install.sh +++ b/install.sh @@ -2,14 +2,18 @@ # First uninstall any unnecessary packages and ensure that aptitude is installed. apt-get update -apt-get -y install aptitude -aptitude -y install nano -aptitude -y install lsb-release +apt-get -y install nano +apt-get -y install lsb-release service apache2 stop service sendmail stop service bind9 stop service nscd stop -aptitude -y purge nscd bind9 sendmail apache2 apache2.2-common +apt-get -y purge nscd bind9 apache2 apache2.2-common + +#Install PHP8.1 +apt-get -y install lsb-release ca-certificates apt-transport-https software-properties-common gnupg2 +echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/sury-php.list +wget -qO - https://packages.sury.org/php/apt.gpg | apt-key add - echo "" echo "Configuring /etc/apt/sources.list." diff --git a/options.conf b/options.conf index 1a622a1..f9cc45f 100644 --- a/options.conf +++ b/options.conf @@ -6,7 +6,7 @@ SERVER_IP="0.0.0.0" SSHD_PORT=22 # Set an admin email account to be used for various system notifications and alerts -ADMIN_EMAIL="admin@yourdomain.com" +ADMIN_EMAIL="admin@gmail.com" # Choose whether you want to maintain 'root login' or not. Options = yes|no ROOT_LOGIN=no @@ -19,23 +19,17 @@ CONFIGURE_APT=no WEBSERVER=1 # Oracle MySQL = 1, MariaDB = 2, Percona = 3 -DBSERVER=1 - -# MariaDB 5.5 options -# Generate preferred repo from https://downloads.mariadb.org/mariadb/repositories/ -# Specify repository's hostname if using another mirror. Required for APT pinning -MARIADB_REPO='http://ftp.osuosl.org/pub/mariadb/repo/5.5/' -MARIADB_REPO_HOSTNAME='ftp.osuosl.org' +DBSERVER=2 # Enable official nginx.org repository. Options = yes|no # Faster nginx updates, fewer compiled in modules USE_NGINX_ORG_REPO=no # Root password for MySQL, MariaDB or Percona -MYSQL_ROOT_PASSWORD=abcd1234 +MYSQL_ROOT_PASSWORD=MyNewPassword # phpMyAdmin = 1, Adminer = 2 -DB_GUI=1 +DB_GUI=2 # Set amount of RAM for Varnish cache VARNISH_CACHE_SIZE=50M @@ -59,15 +53,24 @@ MISC_PACKAGES="" # Configure PHP. Recommended to leave PHP_BASE unchanged # You may safely remove all the modules in PHP_EXTRAS -PHP_BASE="php5-fpm php5-common php-apc php5-mysqlnd php5-dev" -PHP_EXTRAS="php5-memcache php5-curl php5-mcrypt php5-xsl php5-gd php5-imagick php5-snmp php5-xmlrpc" +PHP_BASE="php8.1-fpm php8.1-common php8.1-apcu php8.1-mysql php8.1-dev" +PHP_EXTRAS="php8.1-bcmath php8.1-intl php8.1-soap php8.1-xml php8.1-cli php8.1-memcache php8.1-curl php8.1-xsl php8.1-gd php8.1-imagick php8.1-snmp php8.1-xmlrpc php8.1-zip php8.1-mbstring" + +# Settings for nginx.conf +NGINX_CLIENT_MAX_BODY_SIZE='128m;' # Settings for php.ini -PHP_MEMORY_LIMIT=96M -PHP_MAX_EXECUTION_TIME=120 +PHP_MEMORY_LIMIT=128M +PHP_MAX_EXECUTION_TIME=18000 PHP_MAX_INPUT_TIME=300 -PHP_POST_MAX_SIZE=25M -PHP_UPLOAD_MAX_FILESIZE=25M +PHP_POST_MAX_SIZE=512M +PHP_UPLOAD_MAX_FILESIZE=512M + +# sample +# sed -i "s/memory_limit = .*/memory_limit = 768M/" /etc/php/8.1/fpm/php.ini +# sed -i "s/upload_max_filesize = .*/upload_max_filesize = 128M/" /etc/php/8.1/fpm/php.ini +# sed -i "s/zlib.output_compression = .*/zlib.output_compression = on/" /etc/php/8.1/fpm/php.ini +# sed -i "s/max_execution_time = .*/max_execution_time = 18000/" /etc/php/8.1/fpm/php.ini # Settings for PHP5-FPM's pool FPM_MAX_CHILDREN=5 diff --git a/setup.sh b/setup.sh index f75eb4f..70f6551 100644 --- a/setup.sh +++ b/setup.sh @@ -1,6 +1,6 @@ ############################################################################################### # TuxLite - Complete LNMP/LAMP setup script for Debian/Ubuntu # -# Nginx/Apache + PHP5-FPM + MySQL # +# Nginx/Apache + php8.1-fpm + MySQL # # Stack is optimized/tuned for a 256MB server # # Email your questions to s@tuxlite.com # ############################################################################################### @@ -12,7 +12,7 @@ DISTRO=`lsb_release -i -s` # Distribution's release. Squeeze, wheezy, precise etc RELEASE=`lsb_release -c -s` if [ $DISTRO = "" ]; then - echo -e "\033[35;1mPlease run 'aptitude -y install lsb-release' before using this script.\033[0m" + echo -e "\033[35;1mPlease run 'apt-get -y install lsb-release' before using this script.\033[0m" exit 1 fi @@ -21,7 +21,7 @@ fi function basic_server_setup { - aptitude update && aptitude -y safe-upgrade + apt-get update && apt-get -y safe-upgrade # Reconfigure sshd - change port and disable root login sed -i 's/^Port [0-9]*/Port '${SSHD_PORT}'/' /etc/ssh/sshd_config @@ -107,7 +107,7 @@ EOF ## Third party mirrors ## - # Need to add Dotdeb repo for installing PHP5-FPM when using Debian 6.0 (squeeze) + # Need to add Dotdeb repo for installing PHP7-FPM when using Debian 11 if [ $DISTRO = "Debian" ] && [ $RELEASE = "squeeze" ]; then echo -e "\033[35;1mEnabling DotDeb repo for Debian 6.0 Squeeze. \033[0m" cat > /etc/apt/sources.list.d/dotdeb.list < /etc/apt/sources.list.d/MariaDB.list < /etc/apt/sources.list.d/MariaDB.list < /etc/apt/preferences.d/MariaDB < /etc/apt/preferences.d/MariaDB < /etc/nginx/nginx.conf # Change nginx user from "www-data" to "nginx". Not really necessary - # because "www-data" user is created when installing PHP5-FPM + # because "www-data" user is created when installing PHP-FPM if [ $USE_NGINX_ORG_REPO = "yes" ]; then sed -i 's/^user\s*www-data/user nginx/' /etc/nginx/nginx.conf fi @@ -368,8 +371,8 @@ function optimize_stack { sed -i 's/^[^#]/#&/' /etc/cron.d/awstats fi - service php5-fpm stop - php_fpm_conf="/etc/php5/fpm/pool.d/www.conf" + service php8.1-fpm stop + php_fpm_conf="/etc/php/8.1/fpm/pool.d/www.conf" # Limit FPM processes sed -i 's/^pm.max_children.*/pm.max_children = '${FPM_MAX_CHILDREN}'/' $php_fpm_conf sed -i 's/^pm.start_servers.*/pm.start_servers = '${FPM_START_SERVERS}'/' $php_fpm_conf @@ -377,15 +380,19 @@ function optimize_stack { sed -i 's/^pm.max_spare_servers.*/pm.max_spare_servers = '${FPM_MAX_SPARE_SERVERS}'/' $php_fpm_conf sed -i 's/\;pm.max_requests.*/pm.max_requests = '${FPM_MAX_REQUESTS}'/' $php_fpm_conf # Change to socket connection for better performance - sed -i 's/^listen =.*/listen = \/var\/run\/php5-fpm-www-data.sock/' $php_fpm_conf + sed -i 's/^listen =.*/listen = \/var\/run\/php-fpm-www-data.sock/' $php_fpm_conf + + # Tweak nginx.conf based on input in options.conf + sed -i "s|;*client_max_body_size .*|client_max_body_size ${NGINX_CLIENT_MAX_BODY_SIZE}|i" /etc/nginx/nginx.conf - php_ini_dir="/etc/php5/fpm/php.ini" + php_ini_dir="/etc/php/8.1/fpm/php.ini" # Tweak php.ini based on input in options.conf sed -i 's/^max_execution_time.*/max_execution_time = '${PHP_MAX_EXECUTION_TIME}'/' $php_ini_dir sed -i 's/^memory_limit.*/memory_limit = '${PHP_MEMORY_LIMIT}'/' $php_ini_dir sed -i 's/^max_input_time.*/max_input_time = '${PHP_MAX_INPUT_TIME}'/' $php_ini_dir sed -i 's/^post_max_size.*/post_max_size = '${PHP_POST_MAX_SIZE}'/' $php_ini_dir sed -i 's/^upload_max_filesize.*/upload_max_filesize = '${PHP_UPLOAD_MAX_FILESIZE}'/' $php_ini_dir + sed -i 's/^post_max_size.*/post_max_size = '${PHP_UPLOAD_MAX_FILESIZE}'/' $php_ini_dir sed -i 's/^expose_php.*/expose_php = Off/' $php_ini_dir sed -i 's/^disable_functions.*/disable_functions = exec,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,dl,popen,show_source/' $php_ini_dir @@ -394,7 +401,7 @@ function optimize_stack { echo -e "\033[35;1m Generating self signed SSL cert... \033[0m" mkdir /etc/ssl/localcerts - aptitude -y install expect + apt-get -y install expect GENERATE_CERT=$(expect -c " set timeout 10 @@ -417,7 +424,7 @@ function optimize_stack { ") echo "$GENERATE_CERT" - aptitude -y purge expect + apt-get -y purge expect # Tweak my.cnf. Commented out. Best to let users configure my.cnf on their own #cp /etc/mysql/{my.cnf,my.cnf.bak} @@ -434,9 +441,9 @@ function optimize_stack { restart_webserver sleep 2 - service php5-fpm start + service php8.1-fpm start sleep 2 - service php5-fpm restart + service php8.1-fpm restart echo -e "\033[35;1m Optimize complete! \033[0m" } # End function optimize @@ -448,7 +455,7 @@ function install_postfix { echo "postfix postfix/main_mailer_type select Internet Site" | debconf-set-selections echo "postfix postfix/mailname string $HOSTNAME_FQDN" | debconf-set-selections echo "postfix postfix/destinations string localhost.localdomain, localhost" | debconf-set-selections - aptitude -y install postfix + apt-get -y install postfix # Allow mail delivery from localhost only /usr/sbin/postconf -e "inet_interfaces = loopback-only" @@ -626,9 +633,9 @@ if [ ! -n "$1" ]; then echo -ne "\033[36m basic\033[0m" echo " - Disable root SSH logins, change SSH port and set hostname." - echo -n "$0" - echo -ne "\033[36m install\033[0m" - echo " - Installs LNMP or LAMP stack. Also installs Postfix MTA." +# echo -n "$0" +# echo -ne "\033[36m install\033[0m" +# echo " - Installs LNMP or LAMP stack. Also installs Postfix MTA." echo -n "$0" echo -ne "\033[36m optimize\033[0m" @@ -664,9 +671,9 @@ install) install_mysql install_php install_extras - install_postfix +# install_postfix restart_webserver - service php5-fpm restart + service php8.1-fpm restart echo -e "\033[35;1m Webserver + PHP-FPM + MySQL install complete! \033[0m" ;; optimize) diff --git a/varnish.sh b/varnish.sh index b301565..3a35b8b 100644 --- a/varnish.sh +++ b/varnish.sh @@ -7,7 +7,7 @@ DISTRO=`lsb_release -i -s` # Distribution's release. Squeeze, wheezy, precise etc RELEASE=`lsb_release -c -s` if [ $DISTRO = "" ]; then - echo -e "\033[35;1mPlease run 'aptitude -y install lsb-release' before using this script.\033[0m" + echo -e "\033[35;1mPlease run 'apt-get -y install lsb-release' before using this script.\033[0m" exit 1 fi @@ -17,7 +17,7 @@ function setup_varnish { # Otherwise, install from distro's repo if [ $DISTRO = "Debian" ]; then if [ $RELEASE = "squeeze" ] || [ $RELEASE = "wheezy" ]; then - aptitude update && aptitude -y install curl + apt-get update && apt-get -y install curl curl http://repo.varnish-cache.org/debian/GPG-key.txt | apt-key add - echo "deb http://repo.varnish-cache.org/debian/ ${RELEASE} varnish-${VARNISH_VER}" > /etc/apt/sources.list.d/varnish.list fi @@ -25,18 +25,18 @@ function setup_varnish { if [ $DISTRO = "Ubuntu" ]; then if [ $RELEASE = "lucid" ] || [ $RELEASE = "precise" ]; then - aptitude update && aptitude -y install curl + apt-get update && apt-get -y install curl curl http://repo.varnish-cache.org/debian/GPG-key.txt | apt-key add - echo "deb http://repo.varnish-cache.org/ubuntu/ ${RELEASE} varnish-${VARNISH_VER}" > /etc/apt/sources.list.d/varnish.list fi fi - aptitude update - aptitude -y install varnish + apt-get update + apt-get -y install varnish # If using Apache, install mod_rpaf to get remote IP of forwarded requests if [ $WEBSERVER -eq 2 ]; then - aptitude -y install libapache2-mod-rpaf + apt-get -y install libapache2-mod-rpaf fi # Create a backup copy of the original config file. Don't do anything if file exists @@ -170,4 +170,4 @@ off) varnish_off echo -e "\033[35;1m Varnish disabled. \033[0m" ;; -esac +esac \ No newline at end of file