Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
evz
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
etersoft
evz
Commits
d00805af
Commit
d00805af
authored
Feb 24, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add more aliases
parent
d038adf4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
evz-docker
bin/evz-docker
+2
-2
evz-openvz
bin/evz-openvz
+4
-2
No files found.
bin/evz-docker
View file @
d00805af
...
@@ -99,7 +99,7 @@ case $CMD in
...
@@ -99,7 +99,7 @@ case $CMD in
todo vzctl
$CMD
$i
$OPTIONS
--save
todo vzctl
$CMD
$i
$OPTIONS
--save
done
done
;;
;;
ubc
)
# HELPCMD: print resource using via vzubc
ubc
|resources
)
# HELPCMD: print resource using
LIST
=
$(
get_list
"
$@
"
)
LIST
=
$(
get_list
"
$@
"
)
showcmd docker stats
--no-stream
showcmd docker stats
--no-stream
for
i
in
$LIST
;
do
for
i
in
$LIST
;
do
...
@@ -127,7 +127,7 @@ case $CMD in
...
@@ -127,7 +127,7 @@ case $CMD in
docmd docker restart
$i
docmd docker restart
$i
done
done
;;
;;
list
)
# HELPCMD: list avaiable container(s) (use -q|-1 for list only ID, list ALL|-a for list ever stopped containers)
list
|ps
)
# HELPCMD: list avaiable container(s) (use -q|-1 for list only ID, list ALL|-a for list ever stopped containers)
# if -q, just id list
# if -q, just id list
if
[
-z
"
$verbose
"
]
||
[
"
$1
"
=
"-1"
]
||
[
"
$1
"
=
"-q"
]
;
then
if
[
-z
"
$verbose
"
]
||
[
"
$1
"
=
"-1"
]
||
[
"
$1
"
=
"-q"
]
;
then
[
-z
"
$verbose
"
]
||
shift
[
-z
"
$verbose
"
]
||
shift
...
...
bin/evz-openvz
View file @
d00805af
...
@@ -20,6 +20,8 @@
...
@@ -20,6 +20,8 @@
# TODO: add all support for all cases
# TODO: add all support for all cases
# TODO: add ports command support (via rooter/iptables)
# TODO: add ports command support (via rooter/iptables)
# TODO: add cp support
list_all
()
list_all
()
{
{
a
=
vzlist
-1
"
$@
"
| line_filter
a
=
vzlist
-1
"
$@
"
| line_filter
...
@@ -76,7 +78,7 @@ case $CMD in
...
@@ -76,7 +78,7 @@ case $CMD in
a
=
vzctl
$CMD
$i
$OPTIONS
--save
a
=
vzctl
$CMD
$i
$OPTIONS
--save
done
done
;;
;;
ubc
)
# HELPCMD: print resource using via vzubc
ubc
|resources
)
# HELPCMD: print resource using via vzubc
LIST
=
$(
get_list
"
$@
"
)
LIST
=
$(
get_list
"
$@
"
)
for
i
in
$LIST
;
do
for
i
in
$LIST
;
do
#info "Do $CMD on $i ..."
#info "Do $CMD on $i ..."
...
@@ -104,7 +106,7 @@ case $CMD in
...
@@ -104,7 +106,7 @@ case $CMD in
docmd vzctl restart
$i
docmd vzctl restart
$i
done
done
;;
;;
list
)
# HELPCMD: list avaiable container(s) (use -q|-1 for list only ID, list ALL|-a for list ever stopped containers)
list
|ps
)
# HELPCMD: list avaiable container(s) (use -q|-1 for list only ID, list ALL|-a for list ever stopped containers)
# if -q, just id list
# if -q, just id list
if
[
-z
"
$verbose
"
]
||
[
"
$1
"
=
"-1"
]
||
[
"
$1
"
=
"-q"
]
;
then
if
[
-z
"
$verbose
"
]
||
[
"
$1
"
=
"-1"
]
||
[
"
$1
"
=
"-q"
]
;
then
[
-z
"
$verbose
"
]
||
shift
[
-z
"
$verbose
"
]
||
shift
...
...
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