JustMotion/templates/linux_uninstall.sh

10 lines
241 B
Bash
Raw Permalink Normal View History

#!/bin/sh
systemctl stop $app_target
systemctl disable $app_target
rm -v /lib/systemd/system/$app_target.service
rm -v /usr/bin/$app_target
rm -rv /tmp/$app_target-stats
rm -rv $install_dir
deluser $app_target
echo "Uninstallation Complete"