修改代码中的后台登陆账号,密码,api密码,自定义端口,在群晖SSH中直接执行即可,如容器有更新,重新执行即可。

下载完整包,放在群晖上:

Releases · hjdhnx/drpy-node

例如:/volume1/docker/drpy-node-main

安装脚本:

file iconDrpyS.sh


如需更新资源,重新运行脚本即可。


代码如下:

plaintext
#!/bin/bash
set -e

export LANG="zh_CN.UTF-8"
export LC_ALL="zh_CN.UTF-8"
# ========================
# drpy-node 自动更新脚本
# ========================

#### 设置变量####

# 容器名称
CONTAINER_NAME="drpyS25"
# 后台登陆账号
AUTH_NAME="admin"
#后台登陆密码
AUTH_PWD="drpys"
#API密码
API_PWD="xxxx"
#自定义端口
port="9098"
# 安装路径
TARGET_DIR="/volume1/docker/drpy-node-main"
# drpys资源文件
GH_API="https://api.github.com/repos/hjdhnx/drpy-node/releases/latest"
# docker加速
proxy_docker="docker.1ms.run"
# 是否代理
proxy_list=("https://gh.llkk.cc" "https://ghproxy.net" "https://gitproxy.click" "https://github.tbedu.top" "https://ghfile.geekertao.top" "https://github.proxy.class3.fun" "https://ghf.无名氏.top" "https://ghm.078465.xyz" "https://gh-proxy.net" "https://jiashu.1win.eu.org" "https://j.1win.ggff.net" "https://j.1lin.dpdns.org" "https://gh-deno.mocn.top" "https://git.yylx.win" "https://tvv.tw" "https://gp-us.fyan.top" "https://gitproxy.127731.xyz" "https://github.cmsz.dpdns.org" "https://ghproxy.fangkuai.fun" "https://github.3x25.com" "https://ghproxy.vansour.top" "https://ghp.ml1.one" "https://x.whereisdoge.work" "https://y.whereisdoge.work" "https://gh.catmak.name" "https://hub.gitmirror.com" "https://github.dpik.top" "https://gh.dpik.top" "http://fast.qmwneb946.dpdns.org" "https://gh-proxy.com" "https://gh.b52m.cn" "https://gh.bugdey.us.kg" "https://gh.wsmdn.dpdns.org" "https://github.lxxz.xyz" "http://gh.927223.xyz")
# 旁路代理
Local_proxy="http://192.168.1.2:1085"
export http_proxy=$Local_proxy
export https_proxy=$Local_proxy
# 版本选择
Green=1  # 1=绿色版, 0=完整版

####检查容器####

# 检查是否存在同名容器
EXISTING_CONTAINER=$(docker ps -a -q -f name=$CONTAINER_NAME)
if [ -z "$EXISTING_CONTAINER" ]; then
# 准备环境文件
cat > /tmp/.env <