1Panel/ci/script.sh
wanghe-fit2cloud 73930c5e29
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after 3s
feat: Compatible with system upgrades for v1.10.30 and earlier versions
2025-06-24 17:32:23 +08:00

37 lines
950 B
Bash
Executable file

#!/bin/bash
command -v wget >/dev/null || {
echo "wget not found, please install it and try again ."
exit 1
}
if [ ! -f "1pctl" ]; then
wget https://github.com/1Panel-dev/installer/raw/main/1pctl
fi
if [ ! -f "install.sh" ]; then
wget https://github.com/1Panel-dev/installer/raw/main/install.sh
fi
if [ ! -d "initscript" ]; then
wget https://github.com/1Panel-dev/installer/raw/main/initscript/1panel.service
mkdir -p initscript && cd initscript
for file in 1panel.service 1paneld.init 1paneld.openrc 1paneld.procd; do
wget -q https://github.com/1Panel-dev/installer/raw/main/initscript/$file
done
cd ..
fi
if [ ! -d "lang" ]; then
mkdir -p lang && cd lang
for lang in en fa pt-BR ru zh; do
wget -q https://github.com/1Panel-dev/installer/raw/main/lang/$lang.sh
done
cd ..
fi
if [ ! -f "GeoIP.mmdb" ]; then
wget https://resource.fit2cloud.com/1panel/package/geo/GeoIP.mmdb
fi
chmod 755 1pctl install.sh