Create an IRC login password
This adds a little more security by default. The fact that any user of the box can read this password isn't a problem because it's expected that they should be able to do that.
This commit is contained in:
parent
ae34e8d144
commit
5a7b501e50
|
@ -7325,6 +7325,11 @@ function install_irc_server {
|
||||||
DEFAULTDOMAIN="${DEFAULT_DOMAIN_NAME}.local"
|
DEFAULTDOMAIN="${DEFAULT_DOMAIN_NAME}.local"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# create a login password if needed
|
||||||
|
if [ ! $IRC_PASSWORD ]; then
|
||||||
|
IRC_PASSWORD="$(openssl rand -base64 32 | cut -c1-10)"
|
||||||
|
fi
|
||||||
|
|
||||||
echo '**************************************************' > /etc/ngircd/motd
|
echo '**************************************************' > /etc/ngircd/motd
|
||||||
echo $'* F R E E D O M B O N E I R C *' >> /etc/ngircd/motd
|
echo $'* F R E E D O M B O N E I R C *' >> /etc/ngircd/motd
|
||||||
echo '* *' >> /etc/ngircd/motd
|
echo '* *' >> /etc/ngircd/motd
|
||||||
|
|
Loading…
Reference in New Issue