Skip to content

Commit

Permalink
Add launchpad uninstaller prerm and postrm
Browse files Browse the repository at this point in the history
  • Loading branch information
hientominh authored and hiento09 committed Aug 1, 2024
1 parent 9f48d1d commit c3f8011
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions package-managers-template/launchpad/cortexso/debian/postrm
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
set +e

for userdir in /home/*; do
if [ -d "$userdir/cortex" ]; then
rm -rf "$userdir/cortex" > /dev/null 2>&1
fi
done

exit 0
6 changes: 6 additions & 0 deletions package-managers-template/launchpad/cortexso/debian/prerm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
set +e

/usr/bin/cortex stop > /dev/null 2>&1

exit 0

0 comments on commit c3f8011

Please sign in to comment.