mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
moved main configs to kvmd package
This commit is contained in:
parent
8c9441e0a3
commit
09cccf0ffb
@ -11,7 +11,6 @@ release:
|
|||||||
make push
|
make push
|
||||||
make bump
|
make bump
|
||||||
make push
|
make push
|
||||||
make pypi
|
|
||||||
make clean
|
make clean
|
||||||
|
|
||||||
tox:
|
tox:
|
||||||
@ -24,10 +23,6 @@ push:
|
|||||||
git push
|
git push
|
||||||
git push --tags
|
git push --tags
|
||||||
|
|
||||||
pypi:
|
|
||||||
python3 setup.py register
|
|
||||||
python3 setup.py sdist upload
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf build site dist pkg src *.egg-info kvmd-*.tar.gz
|
rm -rf build site dist pkg src *.egg-info kvmd-*.tar.gz
|
||||||
find -name __pycache__ | xargs rm -rf
|
find -name __pycache__ | xargs rm -rf
|
||||||
|
|||||||
@ -39,4 +39,7 @@ package() {
|
|||||||
cd $srcdir/$pkgname-build
|
cd $srcdir/$pkgname-build
|
||||||
python setup.py install --root=$pkgdir
|
python setup.py install --root=$pkgdir
|
||||||
install -Dm644 kvmd.service "$pkgdir"/usr/lib/systemd/system/kvmd.service
|
install -Dm644 kvmd.service "$pkgdir"/usr/lib/systemd/system/kvmd.service
|
||||||
|
mkdir -p "$pkgdir"/usr/share/kvmd
|
||||||
|
cp -r web "$pkgdir"/usr/share/kvmd
|
||||||
|
cp -r configs "$pkgdir"/usr/share/kvmd
|
||||||
}
|
}
|
||||||
|
|||||||
@ -40,7 +40,7 @@ http {
|
|||||||
uwsgi_temp_path /tmp/nginx.uwsgi_temp;
|
uwsgi_temp_path /tmp/nginx.uwsgi_temp;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /srv/http;
|
root /usr/share/kvmd/web;
|
||||||
index index.html;
|
index index.html;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1 +0,0 @@
|
|||||||
../os/platforms/v1/kvmd.yaml
|
|
||||||
@ -6,9 +6,9 @@ RUN pkg-install \
|
|||||||
COPY stages/pikvm/config.txt /boot/
|
COPY stages/pikvm/config.txt /boot/
|
||||||
COPY stages/pikvm/sysctl.conf /etc/sysctl.d/99-pikvm.conf
|
COPY stages/pikvm/sysctl.conf /etc/sysctl.d/99-pikvm.conf
|
||||||
COPY stages/pikvm/udev.rules /etc/udev/rules.d/pikvm.rules
|
COPY stages/pikvm/udev.rules /etc/udev/rules.d/pikvm.rules
|
||||||
COPY stages/pikvm/index.html /srv/http/
|
|
||||||
COPY stages/pikvm/kvmd.yaml /etc/
|
RUN cp /usr/share/kvmd/configs/nginx/nginx.conf /etc/nginx/
|
||||||
COPY stages/pikvm/nginx.conf /etc/nginx/
|
RUN cp /usr/share/kvmd/configs/kvmd/v1.yaml /etc/kvmd.yaml
|
||||||
|
|
||||||
RUN systemctl enable kvmd
|
RUN systemctl enable kvmd
|
||||||
RUN systemctl enable nginx
|
RUN systemctl enable nginx
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user