diff --git a/pandora_server/docker_entrypoint.sh b/pandora_server/docker_entrypoint.sh
index 9529488f2b..38fc841da2 100755
--- a/pandora_server/docker_entrypoint.sh
+++ b/pandora_server/docker_entrypoint.sh
@@ -38,7 +38,7 @@ fi
 #Create the pandora user to run the anyterd, mainly
 /usr/sbin/useradd -d /home/pandora -s /bin/false -M -g 0 pandora
 
-cd /tmp/pandorafms/pandora_server && chmod +x pandora_server_installer && ./pandora_server_installer --install
+cd /tmp/pandorafms/pandora_server && chmod +x pandora_server_installer && sync && ./pandora_server_installer --install
 
 #Configure the Pandora FMS Server to connect to the database
 sed -i "s/dbname pandora/dbname $PANDORA_DB_NAME/g" /etc/pandora/pandora_server.conf