appstore-1panel/script/auto_install.sh
Meng Sen 6c18fe434d 提交合并
Signed-off-by: 萌森 <qyg2297248353@163.com>
2024-07-17 16:30:13 +08:00

29 lines
973 B
Bash

#!/bin/bash
mkdir -p /home/task
urls=(
'https://install.lifebus.top/app_install.sh'
'https://gitee.com/qyg2297248353/appstore-1panel/releases/download/v1.0/app_install.sh'
'https://gitea.com/QYG2297248353/appstore-1panel/releases/download/install/app_install.sh'
'https://raw.githubusercontent.com/QYG2297248353/appstore-1panel/custom/script/app_install.sh'
'https://github.com/QYG2297248353/appstore-1panel/releases/download/install/app_install.sh'
)
for url in "${urls[@]}"; do
wget -O /home/task/app_install.sh "$url" && break
done
if [[ -f /home/task/app_install.sh ]]; then
chmod +x /home/task/app_install.sh
crontab -l | grep -v '/home/task/app_install.sh' | crontab -
crontab -l | grep -v '/home/task/app_install_zh.sh' | crontab -
(crontab -l ; echo "0 */3 * * * /bin/bash /home/task/app_install.sh") | crontab -
/bin/bash /home/task/app_install.sh
else
echo "网络异常,请检查您的网络状态。"
fi