The remove script should not exit if one if the command failed in order to be sure that everything is removed.
For example, imagine that the installation fails at the middle of the script and that everything has not be created/copied - e.g. NGINX configuration, database. The remove script will be nevertheless executed after that in order to clear each thing that the install script have created / copied / ... So, it must expect that some thing doesn't exist and just continue instead of exiting.
The
remove
script should not exit if one if the command failed in order to be sure that everything is removed.For example, imagine that the installation fails at the middle of the script and that everything has not be created/copied - e.g. NGINX configuration, database. The
remove
script will be nevertheless executed after that in order to clear each thing that theinstall
script have created / copied / ... So, it must expect that some thing doesn't exist and just continue instead of exiting.