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 c9fd4939
authored
Sep 11, 2020
by
irul
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Menambahkan informasi situs virtualhost yg terdaftar di apache
1 parent
2a273f4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
server_info.sh
server_info.sh
View file @
c9fd493
...
...
@@ -31,7 +31,6 @@ echo -e "Default Gateway: "`ip route show | sed 's/\(\S\+\s\+\)\?default via \(\
echo
-e
"Uptime: "
`
uptime | awk
'{print $3,$4}'
| sed
's/,//'
`
echo
""
echo
-e
"== Base Application =="
# virtualmin
...
...
@@ -104,7 +103,14 @@ then
else
echo
"[_] php"
fi
echo
""
if
dpkg --get-selections | grep -E
'(^|\s)apache2($|\s)'
&> /dev/null
then
echo
"== Sites Available =="
echo
-e
`
apache2ctl -S 2>&1 | grep
"namevhost"
| awk
'{print "(" NR ") " $4}'
`
echo
""
fi
echo
"Last Check: "
$(
date
'+%Y-%m-%d'
)
echo
""
\ No newline at end of file
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