mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-30 08:56:30 +02:00
api refactoring
This commit is contained in:
parent
5a05537a7f
commit
b3d18600cd
11 changed files with 358 additions and 327 deletions
api/src
|
@ -5,7 +5,7 @@ const platform = `${is_docker() ? 'docker' : 'baremetal'}-${
|
|||
fss.read_file_sync('/etc/os-release')
|
||||
.toString()
|
||||
.split('\n')
|
||||
.find(x=>x.startsWith('ID'))
|
||||
.find(x => x.startsWith('ID'))
|
||||
.replace('ID=','')
|
||||
}`;
|
||||
|
||||
|
@ -17,4 +17,4 @@ module.exports = {
|
|||
version: require('../package.json').version,
|
||||
platform,
|
||||
pkg_installed_file: '.ppman-installed' //Used as indication for if a package was installed
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue