Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nurlan
eepm
Commits
ce76f5ba
Commit
ce76f5ba
authored
Jul 20, 2012
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm: move sudo set to set_sudo func
parent
2a4e3524
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
epm
bin/epm
+1
-6
epm-sh-functions
bin/epm-sh-functions
+11
-0
No files found.
bin/epm
View file @
ce76f5ba
...
...
@@ -34,12 +34,7 @@ load_helper()
load_helper epm-sh-functions
# set SUDO not for root user
SUDO
=
"sudo"
[
-n
"
$UID
"
]
||
UID
=
`
id
-u
`
if
[
$UID
=
"0"
]
;
then
SUDO
=
""
fi
set_sudo
#############################
...
...
bin/epm-sh-functions
View file @
ce76f5ba
...
...
@@ -69,6 +69,17 @@ fatal()
exit
1
}
set_sudo
()
{
# set SUDO not for root user
SUDO
=
"sudo"
[
-n
"
$UID
"
]
||
UID
=
`
id
-u
`
if
[
$UID
=
"0"
]
;
then
SUDO
=
""
fi
}
# FIXME: detect if not recognized
set_pm_type
()
{
...
...
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