Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
irul
/
tools
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2a273f4d
authored
Sep 10, 2020
by
irul
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Menambahkan warning jika tidak dijalankan sebagai root user.
1 parent
abb76c50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
server_info.sh
server_info.sh
View file @
2a273f4
#!/bin/bash
# irul@20200907
if
[[
`
id -u
`
-ne 0
]]
;
then
printf
"
\n
Please run as root.
\n\n
"
;
exit
1 ;
fi
clear
# https://www.2daygeek.com/bash-shell-script-view-linux-system-information/
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment