mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-10 18:06:56 +08:00
29 lines
973 B
Bash
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
|