forked from Wavyzz/dolibarr-docker
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user