fix branch to github
This commit is contained in:
1 parent
d6f407c5a7
commit
04baeb2d15
71 files changed
+447
-310
No files matched your search
@@ -0,0 +1,46 @@
|
||||
#!/bin/sh
|
||||
#bash <(curl -L https://gitee.com/christianswift/surveillance-station-9/raw/main/9.2.0_11289/SurveillanceStation-armv7/install_license)
|
||||
|
||||
|
||||
# 屏蔽认证服务器
|
||||
if grep -q "synosurveillance.synology.com" /etc/hosts; then
|
||||
echo "already blocked license server: synosurveillance.synology.com."
|
||||
else
|
||||
echo "add block license server: synosurveillance.synology.com"
|
||||
echo "0.0.0.0 synosurveillance.synology.com" | sudo tee -a /etc/hosts
|
||||
fi
|
||||
|
||||
|
||||
# 定义处理文件的函数
|
||||
process_file() {
|
||||
local dir="$1"
|
||||
local file="$2"
|
||||
local url="$3"
|
||||
local mode="$4"
|
||||
|
||||
cd "$dir" || exit
|
||||
cp ./"$file" ./"$file"_backup
|
||||
rm ./"$file"
|
||||
wget "$url" -O ./"$file"
|
||||
chown SurveillanceStation:SurveillanceStation ./"$file"
|
||||
chmod "$mode" ./"$file"
|
||||
}
|
||||
|
||||
|
||||
/usr/syno/bin/synopkg stop SurveillanceStation
|
||||
sleep 5
|
||||
|
||||
|
||||
# 处理每个文件
|
||||
process_file /var/packages/SurveillanceStation/target/lib libssutils.so https://gitee.com/christianswift/surveillance-station-9/raw/main/9.2.0_11289/SurveillanceStation-armv7/libssutils.so 0644
|
||||
process_file /var/packages/SurveillanceStation/target/sbin sscmshostd https://gitee.com/christianswift/surveillance-station-9/raw/main/9.2.0_11289/SurveillanceStation-armv7/sscmshostd 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin sscored https://gitee.com/christianswift/surveillance-station-9/raw/main/9.2.0_11289/SurveillanceStation-armv7/sscored 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssdaemonmonitord https://gitee.com/christianswift/surveillance-station-9/raw/main/9.2.0_11289/SurveillanceStation-armv7/ssdaemonmonitord 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssexechelperd https://gitee.com/christianswift/surveillance-station-9/raw/main/9.2.0_11289/SurveillanceStation-armv7/ssexechelperd 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssmessaged https://gitee.com/christianswift/surveillance-station-9/raw/main/9.2.0_11289/SurveillanceStation-armv7/ssmessaged 0755
|
||||
process_file /var/packages/SurveillanceStation/target/sbin ssroutined https://gitee.com/christianswift/surveillance-station-9/raw/main/9.2.0_11289/SurveillanceStation-armv7/ssroutined 0755
|
||||
|
||||
|
||||
|
||||
sleep 5
|
||||
/usr/syno/bin/synopkg start SurveillanceStation
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user