Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
lovelace
webLovelace
Commits
4163fc5e
Commit
4163fc5e
authored
Feb 05, 2017
by
Alejandro E. Rendon
Browse files
fixed Helper function: Get an available uid
parent
630c9b59
Changes
1
Hide whitespace changes
Inline
Side-by-side
helpers/user.js
View file @
4163fc5e
...
...
@@ -36,7 +36,7 @@ exports.getLinuxUsers = (callback) => {
// exports.getLinuxId = (users, callback) => {
exports
.
getLinuxId
=
(
callback
)
=>
{
const
path
=
'
cut -d: -f
4
/etc/passwd
'
;
const
path
=
'
cut -d: -f
3
/etc/passwd
'
;
exec
(
path
,
(
err
,
stdout
,
stderr
)
=>
{
if
(
err
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment