selective web-tools purge

Now web-tools only purge currently installed packages.
This commit is contained in:
Cristhian Martínez Ochoa 2018-01-25 16:30:46 -07:00
parent 9d97bf93cc
commit a11bac30fb
3 changed files with 9 additions and 2 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*.tar

View file

@ -262,7 +262,12 @@ elif [[ $arg == "-purge" && $opt == "-web-tools" ]]; then
fi
if [[ $answer == [Yy] || $(conf_read delall) == "true" ]]; then
sudo apt-get -y purge redis-server php-redis postfix letsencrypt python-boto duplicity duply php-memcached php-memcache memcached
if [[ $(conf_read nginx-tool) == "true" ]]; then
sudo apt-get -y purge letsencrypt python-boto duplicity duply
fi
if [[ $(conf_read php-tool) == "true" ]]; then
sudo apt-get -y purge redis-server php-redis postfix php-memcached php-memcache memcached
fi
sudo apt-get -y autoremove
conf_write web-tool purged
echo ""

2
weby
View file

@ -2,7 +2,7 @@
# Webinoly script.
# This script is designed to install latest Webinoly.
webyversion="1.2.2"
webyversion="1.2.3-beta"
# Check OS support