diff --git a/src/freedombone-logging b/src/freedombone-logging index 688528b7..3b23dbac 100755 --- a/src/freedombone-logging +++ b/src/freedombone-logging @@ -211,7 +211,9 @@ fi systemctl restart syslog if [ -d /etc/tor ]; then - systemctl reload tor + if [[ "$2" != "--onion" ]]; then + systemctl restart tor + fi fi if [ -d /etc/nginx ]; then systemctl restart php5-fpm diff --git a/src/freedombone-utils-final b/src/freedombone-utils-final index 89893d38..230f1f42 100755 --- a/src/freedombone-utils-final +++ b/src/freedombone-utils-final @@ -41,7 +41,11 @@ function install_final { split_gpg_key_into_fragments # 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 clear