From 9ba17fba4f85b633cc92b617e82fb56c2b4ae5c3 Mon Sep 17 00:00:00 2001 From: Kyle Robbertze Date: Mon, 28 Mar 2022 15:25:01 +0200 Subject: [PATCH] fix(installer): test and create correct log path --- install | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/install b/install index 029a69512..858bdaff2 100755 --- a/install +++ b/install @@ -1027,13 +1027,12 @@ verbose "\n * Installing necessary python services..." loudCmd "$pip_install setuptools~=58.0" verbose "...Done" -if [ ! -d /var/log/airtime ]; then +if [ ! -d /var/log/libretime ]; then loud "\n-----------------------------------------------------" loud " * Installing Log Files * " loud "-----------------------------------------------------" - verbose "\n * Creating /var/log/airtime" - loudCmd "mkdir -p /var/log/airtime" + verbose "\n * Creating /var/log/libretime" mkdir_and_chown "$web_user:$web_user" "/var/log/libretime" verbose "\n * Copying logrotate files..." @@ -1052,8 +1051,6 @@ verbose "...Done" verbose "\n * Installing playout and liquidsoap..." loudCmd "$pip_install ${AIRTIMEROOT}/playout" mkdir_and_chown "${web_user}:${web_user}" "${LIBRETIME_WORKING_DIR}/playout" -loudCmd "mkdir -p /var/log/airtime/{pypo,pypo-liquidsoap} /var/tmp/airtime/pypo/{cache,files,tmp} /var/tmp/airtime/show-recorder/" -loudCmd "chown -R ${web_user}:${web_user} /var/log/airtime/{pypo,pypo-liquidsoap} /var/tmp/airtime/pypo/{cache,files,tmp} /var/tmp/airtime/show-recorder/" systemInitInstall libretime-liquidsoap "$web_user" systemInitInstall libretime-playout "$web_user" verbose "...Done"