Change the “elsif” to “if” and restart LMS - masking sure that the file has the same ownership afterwards as it did before.