From ee14d8a323b2e461b30931663b61e186bd061508 Mon Sep 17 00:00:00 2001 From: Mihai Galos Date: Thu, 15 Aug 2019 07:25:42 +0000 Subject: [PATCH] Use sudo for /var/log owned by root --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 0798b4f..aa52044 100755 --- a/install.sh +++ b/install.sh @@ -1,5 +1,5 @@ #!/usr/bin/env sh -set -x + . ./log2ram.conf isLogFolderSizeEnough () { @@ -25,7 +25,7 @@ assertSufficientSpace () { while true; do read -p "$RAM_LOG is too big to continue. Would you like to delete it? [Y/n]: " yn case $yn in - [Yy]* ) rm -rf $RAM_LOG; break;; + [Yy]* ) sudo rm -rf $RAM_LOG; break;; [Nn]* ) exit 1;; * ) echo "Please answer yes or no.";; esac