25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-26 16:26:24 +01:00

Once installed, show next steps

This commit is contained in:
Badlop 2022-04-07 17:59:22 +02:00
parent b773bb4cd4
commit 06e448b4d0

View File

@ -69,6 +69,7 @@ data_path="/opt/$rel_name"
conf_path="$data_path/conf" conf_path="$data_path/conf"
pem_file="$conf_path/server.pem" pem_file="$conf_path/server.pem"
url='https://docs.ejabberd.im/admin/upgrade/#specific-version-upgrade-notes' 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") tmp_dir=$(mktemp -d "/tmp/.$rel_name.XXXXXX")
trap 'rm -rf "$tmp_dir"' INT TERM EXIT trap 'rm -rf "$tmp_dir"' INT TERM EXIT
@ -198,7 +199,15 @@ create_setup_script()
echo echo
echo '$url' echo '$url'
echo echo
echo 'If everything looks fine, restart the $rel_name service.' echo 'If everything looks fine, restart the $rel_name service:'
echo ' systemctl restart ejabberd'
else
echo 'Now you can check ejabberd is running correctly:'
echo ' systemctl status ejabberd'
echo
echo 'Next you may want to edit ejabberd.yml to setup hosts,'
echo 'register an account and grant it admin rigts, see:'
echo '$url_doc_admin'
fi fi
EOF EOF
chmod +x "$dir/setup" chmod +x "$dir/setup"