Commit c89b0bb8 authored by Ryan Herbert's avatar Ryan Herbert

vidjil-server.postinst fix issue with log creation

If the folder /var/vidjil happened to already exist on the host machine
(as was the case with the docker image due to the inclusion of a volume
pointing to that directory) the whole if statement and the log files
would never be created if they didn't already exist.
parent 77ea9efc
......@@ -239,10 +239,10 @@ vidjil_logs_install() {
echo "configuring logs"
if [ ! -d /var/vidjil ] ; then
sudo mkdir /var/vidjil
sudo touch /var/vidjil/vidjil.log
sudo touch /var/vidjil/vidjil-debug.log
sudo chown -R www-data:www-data /var/vidjil
fi
sudo touch /var/vidjil/vidjil.log
sudo touch /var/vidjil/vidjil-debug.log
sudo chown -R www-data:www-data /var/vidjil
}
case "$1" in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment