mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-01-11 09:40:17 +08:00
feat: service handling on more platforms
This commit is contained in:
parent
f552a0ac36
commit
9242bf6482
2 changed files with 11 additions and 8 deletions
|
|
@ -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'
|
||||
|
|
|
|||
14
ci/script.sh
14
ci/script.sh
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue