feat: file overwrite when down in install.sh

This commit is contained in:
moonrailgun 2023-12-22 00:36:38 +08:00
parent 518064eb0a
commit a579b678cc

View File

@ -137,8 +137,8 @@ function install_client() {
echo -e "${Info} Downloading ${arch} binary file..." echo -e "${Info} Downloading ${arch} binary file..."
mkdir -p /usr/local/tianji/reporter/ mkdir -p /usr/local/tianji/reporter/
cd /tmp cd /tmp
# wget --no-check-certificate "https://github.com/msgbyte/tianji/releases/latest/download/tianji-reporter-linux-${arch}" # wget --no-check-certificate "https://github.com/msgbyte/tianji/releases/latest/download/tianji-reporter-linux-${arch}" -O tianji-reporter-linux-${arch}
wget --no-check-certificate "https://temp-storage.msgbyte.com/tianji-reporter/tianji-reporter-linux-${arch}" wget --no-check-certificate "https://temp-storage.msgbyte.com/tianji-reporter/tianji-reporter-linux-${arch}" -O tianji-reporter-linux-${arch}
mv tianji-reporter-linux-${arch} /usr/local/tianji/reporter/tianji-reporter mv tianji-reporter-linux-${arch} /usr/local/tianji/reporter/tianji-reporter
chmod +x /usr/local/tianji/reporter/tianji-reporter chmod +x /usr/local/tianji/reporter/tianji-reporter
enable_service enable_service