feat: service handling on more platforms

This commit is contained in:
wanghe-fit2cloud 2025-10-30 14:50:33 +08:00
parent f552a0ac36
commit 9242bf6482
2 changed files with 11 additions and 8 deletions

View file

@ -70,11 +70,12 @@ archives:
wrap_in_directory: true
files:
- 1pctl
- install.sh
- 1panel-core.service
- 1panel-agent.service
- install.sh
- GeoIP.mmdb
- initscript/*
- lang/*
- GeoIP.mmdb
checksum:
name_template: 'checksums.txt'

View file

@ -16,12 +16,14 @@ download_resources() {
wget https://github.com/1Panel-dev/installer/raw/v2/install.sh
fi
if [ ! -f "1panel-core.service" ]; then
wget https://github.com/1Panel-dev/installer/raw/v2/1panel-core.service
fi
if [ ! -f "1panel-agent.service" ]; then
wget https://github.com/1Panel-dev/installer/raw/v2/1panel-agent.service
if [ ! -d "initscript" ]; then
wget https://github.com/1Panel-dev/installer/raw/v2/initscript/1panel-core.service
wget https://github.com/1Panel-dev/installer/raw/v2/initscript/1panel-agent.service
mkdir -p initscript && cd initscript
for file in 1panel-core.init 1panel-agent.init 1panel-core.openrc 1panel-agent.openrc 1panel-core.procd 1panel-agent.procd 1panel-core.service 1panel-agent.service; do
wget -q https://github.com/1Panel-dev/installer/raw/v2/initscript/$file
done
cd ..
fi
if [ ! -d "lang" ]; then