Skip to content

Commit

Permalink
prerm
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Kraynyukhov committed Nov 5, 2018
1 parent 28c1c8d commit f77e588
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ build-deb: install-examples clone-luajit clone-libressl
mkdir -p /opt/lapps/packages
cp ${CND_BASEDIR}/dpkg/control /opt/distrib/lapps-${VERSION}-amd64/DEBIAN/
install -m 0755 ${CND_BASEDIR}/dpkg/postinst /opt/distrib/lapps-${VERSION}-amd64/DEBIAN/
install -m 0755 ${CND_BASEDIR}/dpkg/prerm /opt/distrib/lapps-${VERSION}-amd64/DEBIAN/
cp ${CND_BASEDIR}/dpkg/lapps.conf /opt/distrib/lapps-${VERSION}-amd64/etc/ld.so.conf.d/lapps.conf
cp ${CND_BASEDIR}/dpkg/copyright /opt/distrib/lapps-${VERSION}-amd64/DEBIAN/
cp -RpP /opt/lapps/[^p]* /opt/distrib/lapps-${VERSION}-amd64/opt/lapps/
Expand Down
9 changes: 9 additions & 0 deletions dpkg/prerm
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

chmod u-s /opt/lapps/bin/lapps*
rm -rf /opt/lapps/run
chown root /opt/lapps/run
chown root /opt/lapps/bin/l*
userdel -f lapps

return 0

0 comments on commit f77e588

Please # to comment.