Create doli 12.0.4 (#38)

* Create DOLIBARR 12.0.4

* Update README.md

Co-authored-by: Mathieu POTIER <mpotier@deezer.com>
This commit is contained in:
POTIER Mathieu
2021-01-14 19:43:27 +01:00
committed by GitHub
parent bc221bf564
commit a5af7fdf09
18 changed files with 32 additions and 18 deletions

View File

@@ -150,10 +150,11 @@ function migrateDatabase()
function run()
{
initDolibarr
waitForDataBase
echo "Current Version is : ${DOLI_VERSION}"
if [[ ${DOLI_INSTALL_AUTO} -eq 1 && ! -f /var/www/documents/install.lock ]]; then
waitForDataBase
mysql -u ${DOLI_DB_USER} -p${DOLI_DB_PASSWORD} -h ${DOLI_DB_HOST} ${DOLI_DB_NAME} -e "SELECT Q.LAST_INSTALLED_VERSION FROM (SELECT INET_ATON(CONCAT(value, REPEAT('.0', 3 - CHAR_LENGTH(value) + CHAR_LENGTH(REPLACE(value, '.', ''))))) as VERSION_ATON, value as LAST_INSTALLED_VERSION FROM llx_const WHERE name IN ('MAIN_VERSION_LAST_INSTALL', 'MAIN_VERSION_LAST_UPGRADE') and entity=0) Q ORDER BY VERSION_ATON DESC LIMIT 1" > /tmp/lastinstall.result 2>&1
r=$?
if [[ ${r} -ne 0 ]]; then