Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
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
korinf
etersoft-build-utils
Commits
ed371946
Commit
ed371946
authored
Mar 06, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow run rpmU under root user
parent
2a752255
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
rpmU
bin/rpmU
+1
-0
common
share/eterbuild/functions/common
+2
-3
No files found.
bin/rpmU
View file @
ed371946
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain
# Public domain
ALLOW_ROOT_USER
=
1
# load common functions, compatible with local and installed script
# load common functions, compatible with local and installed script
.
`
dirname
$0
`
/../share/eterbuild/functions/common
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod gettext
load_mod gettext
...
...
share/eterbuild/functions/common
View file @
ed371946
...
@@ -91,12 +91,10 @@ is_gear()
...
@@ -91,12 +91,10 @@ is_gear()
return
1
return
1
}
}
if
[
"
$UID
"
=
"0"
]
&&
[
-z
"
$ALLOW_ROOT_USER
"
]
;
then
if
[
"
$UID
"
=
"0"
]
;
then
fatal
"It is strict recommended do not use these scripts as root"
fatal
"It is strict recommended do not use these scripts as root"
fi
fi
load_mod
()
load_mod
()
{
{
local
i
local
i
...
@@ -107,6 +105,7 @@ load_mod()
...
@@ -107,6 +105,7 @@ load_mod()
load_mod config gettext alt spec strings
load_mod config gettext alt spec strings
# check for needed version
# check for needed version
if
[
-n
"
$NEEDETERBUILD
"
]
;
then
if
[
-n
"
$NEEDETERBUILD
"
]
;
then
if
[
"
$NEEDETERBUILD
"
-gt
"
$ETERBUILDVERSION
"
]
;
then
if
[
"
$NEEDETERBUILD
"
-gt
"
$ETERBUILDVERSION
"
]
;
then
...
...
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