Skip to content

Commit

Permalink
deb: add prerm script to remove ideam directories (#75)
Browse files Browse the repository at this point in the history
Signed-off-by: Harish Anand <[email protected]>
  • Loading branch information
harishanand95 authored Apr 29, 2018
1 parent cfae0ca commit 6951d3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ mkdir -p ideam_0.0-1/var/ideam/data/logs/rabbitmq
mkdir -p ideam_0.0-1/var/ideam/data/logs/tomcat
cp ../ideam.py ideam_0.0-1/usr/local/bin/ideam
cp debian/control ideam_0.0-1/DEBIAN/control
cp debian/prerm ideam_0.0-1/DEBIAN/prerm
chmod 755 ideam_0.0-1/DEBIAN/prerm
cp ../ideam.conf ideam_0.0-1/etc/ideam/
chmod +x ideam_0.0-1/usr/local/bin/ideam
cd ../
Expand Down
5 changes: 5 additions & 0 deletions build/debian/prerm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
rm -rf /usr/local/bin/ideam
rm -rf /var/ideam/data/
rm -rf /etc/ideam
rm -rf /usr/share/ideam
exit 0

0 comments on commit 6951d3c

Please sign in to comment.