2
0

feat: init build release

This commit is contained in:
simonzhangsz
2024-12-12 18:10:43 +08:00
parent 4f075ae506
commit 60a8af09be
43 changed files with 1048 additions and 1 deletions

22
build/bin/wfcsetup.sh Normal file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
WFCWorkDir=/opt/wfc
DockerWorkDir=${WFCWorkDir}/docker
SrcServiceDir=${WFCWorkDir}/systemd/system
DstServiceDir=/etc/systemd/system
# prepare directory
ln -sf /tmp ${DockerWorkDir}/mysql/
chown -R root:root ${DockerWorkDir}/*
chown -R mysql:mysql ${DockerWorkDir}/mysql
chmod -R 755 ${DockerWorkDir}/mysql/*
# setup system serivce
cp -rf ${SrcServiceDir}/wfccontrol.service ${DstServiceDir}/
systemctl daemon-reload
systemctl enable wfccontrol.service
# build docker compose
cd ${DockerWorkDir}
docker-compose build