From c2f00aed9fe5a7df75958fdb758e4d9d47853f31 Mon Sep 17 00:00:00 2001 From: Bob Mottram <bob@robotics.uk.to> Date: Sun, 20 Nov 2016 21:55:38 +0000 Subject: [PATCH] restart tor when changing logging --- src/freedombone-logging | 4 +++- src/freedombone-utils-final | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/freedombone-logging b/src/freedombone-logging index 688528b71..3b23dbacb 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 89893d388..230f1f422 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 -- GitLab