forked from ScoDoc/ScoDoc
Debian desinstall (purge) script
This commit is contained in:
parent
0bc8138c72
commit
ee0961d247
19
tools/debian/postrm
Executable file
19
tools/debian/postrm
Executable file
@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Déinstallation de scodoc
|
||||||
|
# Ne touche pas aux données (/opt/scodoc-data)
|
||||||
|
# N'enlève complètement /opt/scodoc qui si --purge
|
||||||
|
|
||||||
|
systemctl stop scodoc9
|
||||||
|
systemctl disable scodoc9
|
||||||
|
|
||||||
|
if [ "$#" == 1 ] && [ "$1" == "purge" ]
|
||||||
|
then
|
||||||
|
/bin/rm -rf /opt/scodoc
|
||||||
|
/bin/rm -f scodoc9.service
|
||||||
|
/bin/rm -f /etc/systemd/system/scodoc-updater.service
|
||||||
|
/bin/rm -f /etc/systemd/system/scodoc-updater.timer
|
||||||
|
/bin/rm -f /etc/nginx/sites-enabled/scodoc9.nginx
|
||||||
|
fi
|
||||||
|
|
||||||
|
systemctl reload nginx
|
Loading…
Reference in New Issue
Block a user