From ba5b6133cd4ab30c5fd6c65cbd1896f6cb374573 Mon Sep 17 00:00:00 2001 From: Badlop Date: Thu, 7 Apr 2022 17:58:36 +0200 Subject: [PATCH] Create uninstall.txt with instructions --- tools/make-installers | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tools/make-installers b/tools/make-installers index 11b5d4104..dcedb6b0c 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:'