2023-05-24 08:46:28 +00:00
|
|
|
#!/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 "1panel.service" ]; then
|
|
|
|
wget https://github.com/1Panel-dev/installer/raw/main/1panel.service
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -f "install.sh" ]; then
|
|
|
|
wget https://github.com/1Panel-dev/installer/raw/main/install.sh
|
|
|
|
fi
|
|
|
|
|
2024-11-29 07:11:13 +00:00
|
|
|
if [ ! -f "GeoIP.mmdb" ]; then
|
|
|
|
wget https://resource.1panel.hk/geo/GeoIP.mmdb
|
|
|
|
fi
|
|
|
|
|
2024-12-10 09:50:49 +00:00
|
|
|
if [ ! -f "lang.tar.gz" ]; then
|
|
|
|
wget https://resource.1panel.hk/language/lang.tar.gz
|
|
|
|
tar zxvf lang.tar.gz
|
|
|
|
rm -rf lang.tar.gz
|
|
|
|
fi
|
|
|
|
|
2024-11-29 07:11:13 +00:00
|
|
|
chmod 755 1pctl install.sh
|