feat: init build release
This commit is contained in:
22
build/bin/wfcsetup.sh
Normal file
22
build/bin/wfcsetup.sh
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user