Remove search engine entries from the readme

This commit is contained in:
Bob Mottram 2016-10-28 12:11:21 +01:00
parent 2b5a0e47dc
commit b1c8747604
1 changed files with 4 additions and 2 deletions

View File

@ -114,6 +114,9 @@ function remove_searx {
fi fi
remove_completion_param install_searx remove_completion_param install_searx
sed -i '/Search engine /d' $COMPLETION_FILE sed -i '/Search engine /d' $COMPLETION_FILE
sed -i '/Search Engine /d' /home/$MY_USERNAME/README
sed -i '/Search engine /d' /home/$MY_USERNAME/README
sed -i '/search engine /d' /home/$MY_USERNAME/README
} }
function install_searx { function install_searx {
@ -276,8 +279,7 @@ function install_searx {
echo "$SEARX_PASSWORD" | htpasswd -i -s -c /etc/nginx/.htpasswd $MY_USERNAME echo "$SEARX_PASSWORD" | htpasswd -i -s -c /etc/nginx/.htpasswd $MY_USERNAME
echo '' >> /home/$MY_USERNAME/README echo '' >> /home/$MY_USERNAME/README
echo '' >> /home/$MY_USERNAME/README echo '' >> /home/$MY_USERNAME/README
echo $'Search Engine' >> /home/$MY_USERNAME/README echo $'# Search Engine' >> /home/$MY_USERNAME/README
echo '=============' >> /home/$MY_USERNAME/README
echo $"Search engine onion domain: ${SEARX_ONION_HOSTNAME}" >> /home/$MY_USERNAME/README echo $"Search engine onion domain: ${SEARX_ONION_HOSTNAME}" >> /home/$MY_USERNAME/README
echo $"Your search engine password is: $SEARX_PASSWORD" >> /home/$MY_USERNAME/README echo $"Your search engine password is: $SEARX_PASSWORD" >> /home/$MY_USERNAME/README
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/README chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/README