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() {
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
sudo swapoff -a -v
sudo swapoff -a -v > /dev/null
sudo rm /swapfile
sudo sed -i '/\/swapfile/d' /etc/fstab
sudo sed -i '/vm.swappiness/d' /etc/sysctl.conf

View file

@ -14,8 +14,11 @@ nginx_helper_plugin() {
echo ""
echo "${gre} Nginx Helper Plugin has been installed!"
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 ""
echo "${blu} ** IMPORTANT - Plugin Settings **"
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() {
# 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
echo "${blu}Delete Database [Y/n]?${end}"
while read -r -n 1 -s dbdel; do

View file

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

View file

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