Use compiled LXC
This commit is contained in:
parent
de640bb005
commit
bed2d7f5f6
5
basic.sh
5
basic.sh
@ -47,6 +47,9 @@ wget https://raw.githubusercontent.com/Neilpang/acme.sh/master/acme.sh -O /usr/b
|
|||||||
sed -i 's|$HOME/.$PROJECT_NAME|/etc/acme.sh.d|' /usr/bin/acme.sh
|
sed -i 's|$HOME/.$PROJECT_NAME|/etc/acme.sh.d|' /usr/bin/acme.sh
|
||||||
chmod +x /usr/bin/acme.sh
|
chmod +x /usr/bin/acme.sh
|
||||||
|
|
||||||
|
# Download LXC
|
||||||
|
wget https://dl.dasm.cz/lxc.tar.xz -O - | tar xJf - -C /
|
||||||
|
|
||||||
# Copy VMMgr resources
|
# Copy VMMgr resources
|
||||||
cp ${SOURCE_DIR}/etc/init.d/vmmgr /etc/init.d/vmmgr
|
cp ${SOURCE_DIR}/etc/init.d/vmmgr /etc/init.d/vmmgr
|
||||||
rc-update -u
|
rc-update -u
|
||||||
@ -60,7 +63,7 @@ vmmgr create-selfsigned
|
|||||||
cp ${SOURCE_DIR}/etc/nginx/nginx.conf /etc/nginx/nginx.conf
|
cp ${SOURCE_DIR}/etc/nginx/nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|
||||||
# Configure services
|
# Configure services
|
||||||
for SERVICE in consolefont crond iptables nginx ntpd swap vmmgr; do
|
for SERVICE in cgroups consolefont crond iptables nginx ntpd swap vmmgr; do
|
||||||
rc-update add ${SERVICE} boot
|
rc-update add ${SERVICE} boot
|
||||||
service ${SERVICE} start
|
service ${SERVICE} start
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user