-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add launchpad uninstaller prerm and postrm (#957)
Co-authored-by: Hien To <tominhhien97@gmail.com>
- Loading branch information
1 parent
9f48d1d
commit 8efda56
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
package-managers-template/launchpad/cortexso/debian/postrm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |