summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2022-04-07 17:58:36 +0200
committerBadlop <badlop@process-one.net>2022-05-04 02:39:13 +0200
commitba5b6133cd4ab30c5fd6c65cbd1896f6cb374573 (patch)
treec6b09c1c72bcd23c3c0a0c452368fbe890f02acd /tools
parentAdd help header to the installer help (diff)
Create uninstall.txt with instructions
Diffstat (limited to 'tools')
-rwxr-xr-xtools/make-installers12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/make-installers b/tools/make-installers
index 11b5d410..dcedb6b0 100755
--- a/tools/make-installers
+++ b/tools/make-installers
@@ -71,6 +71,7 @@ pem_file="$conf_path/server.pem"
url='https://docs.ejabberd.im/admin/upgrade/#specific-version-upgrade-notes'
url_doc_admin='https://docs.ejabberd.im/admin/installation/#administration-account'
tmp_dir=$(mktemp -d "/tmp/.$rel_name.XXXXXX")
+path_uninstall="$code_path/uninstall.txt"
trap 'rm -rf "$tmp_dir"' INT TERM EXIT
umask 022
@@ -209,6 +210,17 @@ create_setup_script()
echo '$rel_name $rel_vsn has been installed successfully.'
echo
+ echo >$path_uninstall
+ echo '# To uninstall ejabberd, first remove the service:' >>$path_uninstall
+ echo 'systemctl --now disable ejabberd' >>$path_uninstall
+ echo 'rm -rf /etc/systemd/system/ejabberd.service' >>$path_uninstall
+ echo >>$path_uninstall
+ echo '# Remove the binary files' >>$path_uninstall
+ echo 'rm -rf /opt/ejabberd-*' >>$path_uninstall
+ echo >>$path_uninstall
+ echo '# If you want to remove your config, database and logs:' >>$path_uninstall
+ echo 'rm -rf /opt/ejabberd' >>$path_uninstall
+
if [ \$is_upgrade = true ]
then
echo 'Please check the following web site for upgrade notes:'