codediff/deploy.sh
yaha bea7e15130
All checks were successful
continuous-integration/drone Build is passing
add ci
2023-01-12 17:16:37 +08:00

26 lines
372 B
Bash

#!/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