Security and conformance updates

- Publish abbuse addresse using mod_disco

Allow users to change password with client

- ...
This commit is contained in:
2019-11-23 12:55:41 +01:00
parent be59c27224
commit 5f662828a2
2 changed files with 50 additions and 18 deletions

View File

@@ -2,6 +2,7 @@
toolName=ejabberd
toolConfLoc="/etc/ejabberd/ejabberd.yml"
toolAdminConf="/etc/ejabberd/ejabberdctl.cfg"
# for http upload
toolStorageLoc="/var/ejabberd"
certRoot="/etc/letsencrypt"
@@ -14,15 +15,15 @@ myPass=
step_1_info() { echo "Install $toolName via apt"; }
step_1_alias() { ALIAS="install"; }
step_1() {
exe apt update
exe apt install -y $toolName
exe systemctl stop $toolName
exe apt update
exe apt install -y $toolName
exe systemctl stop $toolName
}
step_2_info() { echo "Use certificate from local letsencrypt"; }
step_2() {
readDomain
local certLoc="${certRoot}/${myDomain}/full.pem"
if [ ! -f "$certLoc" ] ; then
echo "[ERROR] $certLoc not found"
@@ -57,12 +58,13 @@ step_3() {
# create storage for http upload
exe mkdir -p "$toolStorageLoc"
exe chown root:$toolName "$toolStorageLoc"
exe chmod 770 "$toolStorageLoc"
exe chmod 770 "$toolStorageLoc"
fi
# Erlang-VM to listen only on local interface
exe sed -i "s/#\(INET_DIST_INTERFACE=127\.0\.0\.1\)/\1/" "$toolAdminConf"
}
MissingConfEntry="\
Seq's basic configuration file \"$SEQDIR/ejabberd.yml\" missing.
MissingConfEntry="Seq's basic configuration file \"$SEQDIR/ejabberd.yml\" missing.
Backup $toolConfLoc and create a configuration manually.
Some essential settings needed: