Messages Improved

Some messages improved, fixed typos and silent output test.
This commit is contained in:
Cristhian Martínez Ochoa 2018-01-16 14:40:33 -07:00
parent dd8442c348
commit a54d357a20
4 changed files with 11 additions and 8 deletions

View file

@ -643,7 +643,7 @@ tools_port() {
swap_delete() { swap_delete() {
local swapkb=$(grep SwapTotal /proc/meminfo | cut -f 2 -d ':' | tr -d ' ' | cut -f 1 -d 'k') local swapkb=$(grep SwapTotal /proc/meminfo | cut -f 2 -d ':' | tr -d ' ' | cut -f 1 -d 'k')
if [[ -n $swapkb && $swapkb =~ ^[0-9]+$ && $swapkb -gt 0 && $(conf_read swap-owner) == "webinoly" ]]; then if [[ -n $swapkb && $swapkb =~ ^[0-9]+$ && $swapkb -gt 0 && $(conf_read swap-owner) == "webinoly" ]]; then
sudo swapoff -a -v sudo swapoff -a -v > /dev/null
sudo rm /swapfile sudo rm /swapfile
sudo sed -i '/\/swapfile/d' /etc/fstab sudo sed -i '/\/swapfile/d' /etc/fstab
sudo sed -i '/vm.swappiness/d' /etc/sysctl.conf sudo sed -i '/vm.swappiness/d' /etc/sysctl.conf

View file

@ -14,8 +14,11 @@ nginx_helper_plugin() {
echo "" echo ""
echo "${gre} Nginx Helper Plugin has been installed!" echo "${gre} Nginx Helper Plugin has been installed!"
echo " Please, activate this plugin for a better experience with FastCgi Cache." echo " Please, activate this plugin for a better experience with FastCgi Cache."
echo "${blu}It is important to configure the Purge Method of the plugin as “Delete local server cache file”, the support for the purge/url method has been disabled because it is considered a security risk. Similarly, the “Caching Method” should be set to “Nginx FastCgi Cache”. ${end}" echo "${blu} ** IMPORTANT - Plugin Settings **"
echo "" echo "- The “Caching Method” should be set to “Nginx FastCgi Cache”."
echo "- Support for purge/url method has been disabled because it is considered a security risk."
echo "- The Purge Method should be set to “Delete local server cache file” "
echo "${end}"
} }
@ -269,7 +272,7 @@ _EOF_
deletesite() { deletesite() {
# Determine id site is WP, so you should delete the DB too. # Determine if site is WP, so you should delete the DB too.
if [[ -a /var/www/$domain/wp-config.php || -a /var/www/$domain/htdocs/wp-config.php ]]; then if [[ -a /var/www/$domain/wp-config.php || -a /var/www/$domain/htdocs/wp-config.php ]]; then
echo "${blu}Delete Database [Y/n]?${end}" echo "${blu}Delete Database [Y/n]?${end}"
while read -r -n 1 -s dbdel; do while read -r -n 1 -s dbdel; do

View file

@ -446,8 +446,8 @@ elif [[ $opt == "-purge-server-all" ]]; then
echo "${gre}" echo "${gre}"
echo "****************************************************************************" echo "****************************************************************************"
echo "*** Webinoly Stack have been completely removed from your server ***" echo "*** Webinoly Stack have been completely removed from your server ***"
echo "**** We are sad because you decided to remove Webinoly!! ****" echo "**** We are sad because you decided to remove Webinoly!! ****"
echo "****************************************************************************" echo "****************************************************************************"
echo "${end}" echo "${end}"
else else

View file

@ -200,8 +200,8 @@ elif [ "$opt" == "-uninstall" ]; then
swap_delete swap_delete
fi fi
if [[ $(conf_read pre-packs) == true ]]; then if [[ $(conf_read pre-packs) == true ]]; then
sudo apt-get -y -qq purge pwgen unzip sudo apt-get -y -qq purge pwgen unzip > /dev/null
sudo apt-get -y -qq autoremove sudo apt-get -y -qq autoremove > /dev/null
conf_write pre-packs purged conf_write pre-packs purged
fi fi
sudo rm -rf /opt/webinoly sudo rm -rf /opt/webinoly