irc password in readme
This commit is contained in:
parent
98523bc0b1
commit
2ca4085689
|
@ -353,6 +353,7 @@ function remove_irc {
|
|||
if [ -d /home/znc ]; then
|
||||
userdel -r znc
|
||||
fi
|
||||
sed -i '/IRC login/d' /home/$MY_USERNAME/README
|
||||
}
|
||||
|
||||
function configure_firewall_for_irc {
|
||||
|
@ -407,6 +408,13 @@ function install_irc_server {
|
|||
IRC_PASSWORD="$(create_password ${MINIMUM_PASSWORD_LENGTH})"
|
||||
fi
|
||||
|
||||
if ! grep -q "IRC login password: $IRC_PASSWORD" /home/$MY_USERNAME/README; then
|
||||
echo '' >> /home/$MY_USERNAME/README
|
||||
echo "IRC login password: $IRC_PASSWORD" >> /home/$MY_USERNAME/README
|
||||
else
|
||||
sed -i "s|IRC login password.*|IRC login password: $IRC_PASSWORD|g" /home/$MY_USERNAME/README
|
||||
fi
|
||||
|
||||
echo '**************************************************' > /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
|
||||
|
|
Loading…
Reference in New Issue