Local modifications to ClusterLabs/Anvil by Alteeve
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
const SERVER_PATHS = {
|
|
|
|
mnt: {
|
|
|
|
shared: {
|
|
|
|
incoming: {},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
usr: {
|
|
|
|
sbin: {
|
|
|
|
'anvil-sync-shared': {},
|
|
|
|
'striker-access-database': {},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
const generatePaths = (
|
|
|
|
currentObject,
|
|
|
|
parents = path.parse(process.cwd()).root,
|
|
|
|
) => {
|
|
|
|
Object.keys(currentObject).forEach((pathKey) => {
|
|
|
|
const currentPath = path.join(parents, pathKey);
|
|
|
|
|
|
|
|
currentObject[pathKey].self = currentPath;
|
|
|
|
|
|
|
|
if (pathKey !== 'self') {
|
|
|
|
generatePaths(currentObject[pathKey], currentPath);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
generatePaths(SERVER_PATHS);
|
|
|
|
|
|
|
|
module.exports = SERVER_PATHS;
|