Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
341789d6
Commit
341789d6
authored
Dec 17, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add createvps_ip_local.sh
parent
5d248d50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
createvps_ip_local.sh
vz/createvps_ip_local.sh
+13
-0
No files found.
vz/createvps_ip_local.sh
0 → 100755
View file @
341789d6
#!/bin/bash
VEID
=
$1
HOSTNAME
=
$2
VEIP
=
$3
NAMESERVERS
=
"--nameserver 192.168.0.210"
NAME
=
"
$(
echo
"
$HOSTNAME
"
|
sed
-e
"s/
\.
.*//g"
)
"
IF
=
brlocal
vzctl create
$VEID
--ostemplate
=
etersoft-p8
vzctl
set
$VEID
--hostname
$HOSTNAME
--name
$NAME
--onboot
yes
$NAMESERVERS
--save
vzctl
set
$VEID
--tcprcvbuf
unlimited
--kmemsize
40M:45M
--numproc
512
--save
vzctl
set
$VEID
--physpages
1G
--swap
512M
--privvmpages
1.5G
--dcachesize
unlimited
--save
vzctl
set
$VEID
--netif_add
$IF
,,,,
$IF
--save
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