#!/bin/bash if [ "$1" = purge ] && [ -f /etc/systemd/system/fastapi-dls.service ]; then echo "> Removing service file." rm /etc/systemd/system/fastapi-dls.service fi if [ "$1" = purge ] && [ -d /usr/share/fastapi-dls ]; then echo "> Removing app." rm -r /usr/share/fastapi-dls fi # todo