26 lines
372 B
Bash
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
|