修复版本号为 3.4.8-xg1,更新示例参数,调整配置文件路径
Build and Release / build-and-test (amd64, alpine) (push) Successful in -2m2s
Build and Release / build-and-test (amd64, ubuntu) (push) Successful in -1m56s
Build and Release / build-and-test (arm64, ubuntu) (push) Successful in 5s
Build and Release / build-and-test (arm64, alpine) (push) Successful in 10s
Build and Release / release (push) Has been skipped
Build and Release / build-and-test (amd64, alpine) (push) Successful in -2m2s
Build and Release / build-and-test (amd64, ubuntu) (push) Successful in -1m56s
Build and Release / build-and-test (arm64, ubuntu) (push) Successful in 5s
Build and Release / build-and-test (arm64, alpine) (push) Successful in 10s
Build and Release / release (push) Has been skipped
This commit is contained in:
Vendored
+1
-1
@@ -4,7 +4,7 @@ set -e
|
||||
# 参数检查
|
||||
if [ $# -ne 3 ]; then
|
||||
echo "Usage: $0 <ARCH> <VERSION> <TARGZ_FILE>"
|
||||
echo "Example: $0 amd64 3.4.9-xg1 xxxigcc-proxy-amd64-ubuntu-3.4.9-xg1.tar.gz"
|
||||
echo "Example: $0 amd64 3.4.8-xg1 xxxigcc-proxy-amd64-ubuntu-3.4.8-xg1.tar.gz"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Vendored
+5
-5
@@ -18,13 +18,13 @@ chown xxxigcc-proxy:xxxigcc-proxy /var/log/xxxigcc-proxy
|
||||
chmod 750 /var/log/xxxigcc-proxy
|
||||
|
||||
# Create config directory
|
||||
mkdir -p /etc/xxxigcc-proxy
|
||||
mkdir -p /var/lib/xxxigcc-proxy
|
||||
|
||||
# Copy default config if it doesn't exist
|
||||
if [ ! -f /etc/xxxigcc-proxy/config.json ]; then
|
||||
cp /opt/xxxigcc-proxy/config.json /etc/xxxigcc-proxy/config.json
|
||||
chown xxxigcc-proxy:xxxigcc-proxy /etc/xxxigcc-proxy/config.json
|
||||
chmod 640 /etc/xxxigcc-proxy/config.json
|
||||
if [ ! -f /var/lib/xxxigcc-proxy/config.json ]; then
|
||||
cp /opt/xxxigcc-proxy/config.json /var/lib/xxxigcc-proxy/config.json
|
||||
chown xxxigcc-proxy:xxxigcc-proxy /var/lib/xxxigcc-proxy/config.json
|
||||
chmod 640 /var/lib/xxxigcc-proxy/config.json
|
||||
fi
|
||||
|
||||
# Set permissions
|
||||
|
||||
Vendored
+1
-1
@@ -7,7 +7,7 @@ case "$1" in
|
||||
rm -rf /var/log/xxxigcc-proxy
|
||||
|
||||
# Remove config directory
|
||||
rm -rf /etc/xxxigcc-proxy
|
||||
rm -rf /var/lib/xxxigcc-proxy
|
||||
|
||||
# Remove user and group
|
||||
if getent passwd xxxigcc-proxy >/dev/null; then
|
||||
|
||||
Vendored
+1
-1
@@ -9,7 +9,7 @@ Type=simple
|
||||
WorkingDirectory=/opt/xxxigcc-proxy
|
||||
|
||||
# 执行命令
|
||||
ExecStart=/opt/xxxigcc-proxy/xxxigcc-proxy --config=/etc/xxxigcc-proxy/config.json --log-file=/var/log/xxxigcc-proxy/proxy.log --access-log-file=/var/log/xxxigcc-proxy/access.log
|
||||
ExecStart=/opt/xxxigcc-proxy/xxxigcc-proxy --config=/var/lib/xxxigcc-proxy/config.json --log-file=/var/log/xxxigcc-proxy/proxy.log --access-log-file=/var/log/xxxigcc-proxy/access.log
|
||||
|
||||
# 重启策略
|
||||
Restart=always
|
||||
|
||||
Reference in New Issue
Block a user