This commit is contained in:
parent
465bcb3eeb
commit
bea7e15130
8
.drone.yml
Normal file
8
.drone.yml
Normal file
@ -0,0 +1,8 @@
|
||||
kind: pipeline
|
||||
type: exec
|
||||
name: CodeDebugServ
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
commands:
|
||||
- sh deploy.sh
|
||||
25
deploy.sh
Normal file
25
deploy.sh
Normal file
@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
DEPLOY_PATH="/home/work/apps/frp"
|
||||
LOG_PATH="${DEPLOY_PATH}/log"
|
||||
|
||||
folder_exists() {
|
||||
if [ -d "$1" ]; then
|
||||
echo "folder is exists! ${1}"
|
||||
return 0
|
||||
fi
|
||||
|
||||
echo "create folder ${1}"
|
||||
mkdir -p ${1}
|
||||
chown -R work:work ${1}
|
||||
}
|
||||
|
||||
pack_frp() {
|
||||
cp -rv conf/ ${1}
|
||||
}
|
||||
|
||||
#folder_exists ${DEPLOY_PATH}
|
||||
#folder_exists ${LOG_PATH}
|
||||
#pack_frp ${DEPLOY_PATH}
|
||||
ls
|
||||
pwd
|
||||
Loading…
Reference in New Issue
Block a user