Skip to content

Commit cc74b9f

Browse files
committed
fix: 修复更新初始化脚本
1 parent f4ffeb3 commit cc74b9f

15 files changed

Lines changed: 11 additions & 13 deletions

scripts/install_webvirt_cloud.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,9 @@ install_controller() {
316316
mv webvirtcloud-main webvirtcloud
317317
rm -f main.zip
318318
fi
319-
cp -r webvirtcloud/webvirtbackend webvirtcloud/archive/
320-
cp -r webvirtcloud/webvirtfrontend webvirtcloud/archive/
321-
cd webvirtcloud/archive
319+
cp -r webvirtcloud/webvirtbackend webvirtcloud/webvirtcloud/
320+
cp -r webvirtcloud/webvirtfrontend webvirtcloud/webvirtcloud/
321+
cd webvirtcloud/webvirtcloud
322322
if [ -z "$IPV4" ]; then
323323
_red "Error: IPV4 variable not set, getting it again..."
324324
_red "错误: IPV4变量未设置,正在重新获取..."
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
url = ../../webvirtcloud/webvirtbackend.git
44
[submodule "webvirtfrontend"]
55
path = webvirtfrontend
6-
url = ../../webvirtcloud/webvirtfrontend.git
6+
url = ../../webvirtcloud/webvirtfrontend.git
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ http://169.254.169.254 {
5252
header_up X-Real-IP {remote}
5353
}
5454
}
55-
}
55+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ http://169.254.169.254 {
4747
header_up X-Real-IP {remote}
4848
}
4949
}
50-
}
50+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ http://169.254.169.254 {
4848
header_up X-Real-IP {remote}
4949
}
5050
}
51-
}
51+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ ENV PYTHONDONTWRITEBYTECODE=1
4040

4141
COPY ./webvirtbackend/ /backend/
4242

43-
COPY --from=webvirtcloud:frontend /backend/templates/client/index.html /backend/templates/client/index.html
43+
COPY --from=webvirtcloud:frontend /backend/templates/client/index.html /backend/templates/client/index.html
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,4 @@ COPY ./webvirtbackend/static/ /usr/share/caddy/
3636

3737
COPY --from=frontend-build /frontend/apps/web/dist/assets/ /usr/share/caddy/assets/
3838
COPY --from=frontend-build /frontend/apps/web/dist/index.html /backend/templates/client/index.html
39-
COPY --from=frontend-build /frontend/apps/web/dist/manifest.webmanifest /usr/share/caddy/manifest.webmanifest
40-
COPY .caddy/certs/cert.pem /etc/caddy/certs/cert.pem
41-
COPY .caddy/certs/key.pem /etc/caddy/certs/key.pem
39+
COPY --from=frontend-build /frontend/apps/web/dist/manifest.webmanifest /usr/share/caddy/manifest.webmanifest
File renamed without changes.

0 commit comments

Comments
 (0)