mirror of
https://github.com/luzifer-docker/openfire.git
synced 2024-12-20 12:11:19 +00:00
Fix: Logs have changed
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
0243fe89ca
commit
241042d08d
1 changed files with 10 additions and 10 deletions
20
start.sh
20
start.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue