Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Ghost-Blog Maria DB Issue

// In /usr/lib/node_modules/ghost-cli/lib/commands/doctor/checks/mysql.js 
// immediately after the "async function mysqlIsRunning()" code block:
async function mariadbIsRunning() {
    try {
        const services = await sysinfo.services('mariadb');
        return services.some(s => s.name === 'mariadb' && s.running);
    } catch (error) {
        return false;
    }
}
// this goes directly into the "async function mysqlCheck(ctx, task)" block. after the "if (await mysqlIsRunning())" block
if (await mariadbIsRunning()) {
    // MariaDB service found that is also running, so return (instead of mysql)
    return;
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: Print the third number from right 
Javascript :: react spring bounce in animation 
Javascript :: python save api response to json file append 
Javascript :: How to Compare Strings Using localeCompare 
Javascript :: Save Function To Different Name 
Javascript :: Return A "Constructor" Function 
Javascript :: send data to another page javascript 
Javascript :: how to generate a random number between 1 and 6 in javascript 
Javascript :: check if function exists 
Javascript :: reloading init state 
Javascript :: Will Yield function Model 
Javascript :: When defined as a method of an object, in a regular function this refers to the object 
Javascript :: s3 getobject not getting large json object 
Javascript :: use stigviewr 
Javascript :: disable submit button until form is fully validated 
Javascript :: how to filter through an array of objects 
Javascript :: telerik grid destroy table 
Javascript :: add item or nothing array js 
Javascript :: telerik jquery grid set page size 
Javascript :: how can i debug compressed javascript in chrome 
Javascript :: js notimplemented error 
Javascript :: js number power/exponetion 
Javascript :: sort array without using sort function in javascript 
Javascript :: d3 js date scatter plot 
Javascript :: rest object javascript 
Javascript :: on page navigate event javascript 
Javascript :: get time in between two dates javascript dayjs 
Javascript :: Plumasil - new item button desc text 
Javascript :: create index with multiple fields mongo 
Javascript :: how will you get all the matching tags in a html file javascript 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =