restart tor when changing logging

This commit is contained in:
Bob Mottram 2016-11-20 21:55:38 +00:00
parent 812f5db8fb
commit c2f00aed9f
2 changed files with 8 additions and 2 deletions

View File

@ -211,7 +211,9 @@ fi
systemctl restart syslog systemctl restart syslog
if [ -d /etc/tor ]; then if [ -d /etc/tor ]; then
systemctl reload tor if [[ "$2" != "--onion" ]]; then
systemctl restart tor
fi
fi fi
if [ -d /etc/nginx ]; then if [ -d /etc/nginx ]; then
systemctl restart php5-fpm systemctl restart php5-fpm

View File

@ -41,7 +41,11 @@ function install_final {
split_gpg_key_into_fragments split_gpg_key_into_fragments
# turn logging off by default # turn logging off by default
${PROJECT_NAME}-logging off if [[ $ONION_ONLY != 'no' ]]; then
${PROJECT_NAME}-logging off --onion
else
${PROJECT_NAME}-logging off
fi
mark_completed $FUNCNAME mark_completed $FUNCNAME
clear clear