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

@ -3,8 +3,8 @@ set -euo pipefail
# init configuration # init configuration
[ -e "/data/security/keystore" ] || { [ -e "/data/security/keystore" ] || {
mkdir -p /data/security mkdir -p /data/security
mv /opt/openfire/resources/security/keystore /data/security/keystore mv /opt/openfire/resources/security/keystore /data/security/keystore
} }
[ -d "/data/embedded-db" ] || { mkdir -p /data/embedded-db; } [ -d "/data/embedded-db" ] || { mkdir -p /data/embedded-db; }
@ -20,14 +20,14 @@ rm -rf /opt/openfire/conf && ln -sfn /data/conf /opt/openfire/conf
# let openfire start # let openfire start
echo "Waiting for Openfire to start..." echo "Waiting for Openfire to start..."
count=0 count=0
while [ ! -e /opt/openfire/logs/all.log ]; do while [ ! -e /opt/openfire/logs/stdoutt.log ]; do
if [ $count -eq 60 ]; then if [ $count -eq 60 ]; then
echo "Error starting Openfire. Exiting" echo "Error starting Openfire. Exiting"
exit 1 exit 1
fi fi
count=$(( $count + 1 )) count=$((count + 1))
sleep 1 sleep 1
done done
# tail the log # tail the log
tail -f /opt/openfire/logs/all.log tail -F /opt/openfire/logs/*.log