add purge

This commit is contained in:
wh1te909 2021-01-22 09:34:08 +00:00
parent 52bfe7c493
commit ca85923855
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ EOF
if [[ $rmsalt == "y" ]]; then
printf >&2 "${Green}Removing salt-master and salt-api${NC}\n"
for i in salt-api salt-master; do sudo systemctl stop $i; sudo systemctl disable $i; done
sudo apt remove -y salt-master salt-api
sudo apt remove -y --purge salt-master salt-api salt-common
else
sudo systemctl stop salt-api
sudo systemctl disable salt-api