Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Added path.join to improve Windows compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
byjg committed Aug 29, 2017
1 parent 6abab02 commit 2d443fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions usdocker_mysql.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

const usdocker = require('usdocker');
const path = require('path');

const SCRIPTNAME = 'mysql';

Expand Down Expand Up @@ -33,8 +34,8 @@ module.exports = {
config.setEmpty('port', 3306);
config.setEmpty('rootPassword', 'password');

config.copyToUserDir(__dirname + '/mysql/conf.d');
config.copyToUserDir(__dirname + '/mysql/home');
config.copyToUserDir(path.join(__dirname, 'mysql', 'conf.d'));
config.copyToUserDir(path.join(__dirname, 'mysql', 'home'));
callback(null, 'setup loaded for ' + SCRIPTNAME);
},

Expand Down

0 comments on commit 2d443fc

Please sign in to comment.