Spaces:
Running
Running
orztv
commited on
Commit
·
5f3bfdf
1
Parent(s):
54643ce
update
Browse files- Dockerfile +3 -0
- src/setup.sh +4 -0
- src/sshx.sh +2 -2
- startup.sh +0 -0
Dockerfile
CHANGED
@@ -14,3 +14,6 @@ COPY src/sshx.sh ${WORKDIR}/sshx.sh
|
|
14 |
RUN chmod +x ${WORKDIR}/sshx.sh
|
15 |
RUN ${WORKDIR}/sshx.sh
|
16 |
|
|
|
|
|
|
|
|
14 |
RUN chmod +x ${WORKDIR}/sshx.sh
|
15 |
RUN ${WORKDIR}/sshx.sh
|
16 |
|
17 |
+
|
18 |
+
# 使用 startup.sh 启动
|
19 |
+
ENTRYPOINT [ "startup.sh" ]
|
src/setup.sh
CHANGED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/sh
|
2 |
+
|
3 |
+
# 运行sshx
|
4 |
+
$WORKDIR/sshx/sshx -s run
|
src/sshx.sh
CHANGED
@@ -27,6 +27,7 @@ if [ -f "$TARGET_DIR/sshx" ]; then
|
|
27 |
echo "sshx has been successfully downloaded and extracted to $TARGET_DIR"
|
28 |
chmod +x "$TARGET_DIR/sshx"
|
29 |
echo "sshx 版本: $($TARGET_DIR/sshx -V)"
|
|
|
30 |
else
|
31 |
echo "Failed to extract sshx. Please check the download URL and try again."
|
32 |
exit 1
|
@@ -34,7 +35,6 @@ fi
|
|
34 |
|
35 |
# 将sshx添加到PATH
|
36 |
|
|
|
37 |
echo "sshx 安装成功"
|
38 |
|
39 |
-
# 运行sshx
|
40 |
-
$TARGET_DIR/sshx -s run
|
|
|
27 |
echo "sshx has been successfully downloaded and extracted to $TARGET_DIR"
|
28 |
chmod +x "$TARGET_DIR/sshx"
|
29 |
echo "sshx 版本: $($TARGET_DIR/sshx -V)"
|
30 |
+
echo "$TARGET_DIR/sshx --help"
|
31 |
else
|
32 |
echo "Failed to extract sshx. Please check the download URL and try again."
|
33 |
exit 1
|
|
|
35 |
|
36 |
# 将sshx添加到PATH
|
37 |
|
38 |
+
|
39 |
echo "sshx 安装成功"
|
40 |
|
|
|
|
startup.sh
ADDED
File without changes
|