Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
salt
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
17
Merge Requests
1
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0653b50a
authored
Dec 06, 2017
by
Nótai István
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
install: fix root check
parent
1b57b472
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
install
+1
-1
No files found.
install
View file @
0653b50a
#!/bin/sh
if
[
"
$EUID
"
-ne
0
]
;
then
if
[
$(
id
-u
)
-ne
0
]
;
then
RED_UNDERLINED
=
'\033[4;31m'
NC
=
'\033[0m'
# No Color
echo
-e
$RED_UNDERLINED
"Please run as root or use sudo!"
$NC
...
...
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