Fix: Logs have changed

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-01-10 17:39:19 +01:00
parent 0243fe89ca
commit 241042d08d
Signed by: luzifer
GPG Key ID: DC2729FDD34BE99E

View File

@ -20,14 +20,14 @@ rm -rf /opt/openfire/conf && ln -sfn /data/conf /opt/openfire/conf
# let openfire start
echo "Waiting for Openfire to start..."
count=0
while [ ! -e /opt/openfire/logs/all.log ]; do
while [ ! -e /opt/openfire/logs/stdoutt.log ]; do
if [ $count -eq 60 ]; then
echo "Error starting Openfire. Exiting"
exit 1
fi
count=$(( $count + 1 ))
count=$((count + 1))
sleep 1
done
# tail the log
tail -f /opt/openfire/logs/all.log
tail -F /opt/openfire/logs/*.log