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
Тимофей Смирнов
evz
Commits
779c6f0b
Commit
779c6f0b
authored
Feb 24, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mask direct run
parent
ca248d47
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
evz-docker
bin/evz-docker
+2
-2
evz-openvz
bin/evz-openvz
+2
-2
No files found.
bin/evz-docker
View file @
779c6f0b
...
@@ -27,7 +27,7 @@ list_all()
...
@@ -27,7 +27,7 @@ list_all()
return
return
fi
fi
docker ps
-q
| line_filter
a
=
docker ps
-q
| line_filter
}
}
# list all containers (or by arg list)
# list all containers (or by arg list)
...
@@ -38,7 +38,7 @@ list_ALL()
...
@@ -38,7 +38,7 @@ list_ALL()
return
return
fi
fi
docker ps
-a
-q
| line_filter
a
=
docker ps
-a
-q
| line_filter
}
}
todo
()
todo
()
...
...
bin/evz-openvz
View file @
779c6f0b
...
@@ -113,7 +113,7 @@ case $CMD in
...
@@ -113,7 +113,7 @@ case $CMD in
get_list
"
$@
"
get_list
"
$@
"
exit
exit
fi
fi
vzlist
"
$@
"
a
=
vzlist
"
$@
"
;;
;;
exec
)
# HELPCMD: execute command by list (all for all containers)
exec
)
# HELPCMD: execute command by list (all for all containers)
INCMD
=
"
$1
"
INCMD
=
"
$1
"
...
@@ -129,7 +129,7 @@ case $CMD in
...
@@ -129,7 +129,7 @@ case $CMD in
;;
;;
enter
)
# HELPCMD: enter in a container with ID
enter
)
# HELPCMD: enter in a container with ID
showcmd
exec
vzctl enter
"
$1
"
showcmd
exec
vzctl enter
"
$1
"
exec
vzctl enter
"
$1
"
a
=
exec
vzctl enter
"
$1
"
;;
;;
info
)
# HELPCMD: print containers(s) info (vzlist like)
info
)
# HELPCMD: print containers(s) info (vzlist like)
LIST
=
$(
get_list
"
$@
"
)
LIST
=
$(
get_list
"
$@
"
)
...
...
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