-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.copy_menu.USE_ONCE
41 lines (25 loc) · 1.43 KB
/
.copy_menu.USE_ONCE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# ─────────────────────────────────
# prepare includes
# ─────────────────────────────────
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
if [ -z "$DONT_REDEPLOY" ] ; then
source "$SCRIPT_DIR/engine_redeploy_scripts"
fi
if [ -z "$DONT_CLS" ] && [ -z "$1" ] ; then
cls
fi
# ─────────────────────────────────
function copy_menu(){
BASE_1="/var/www/www-root/data/nodejs/server"
BASE_2="/var/www/www-root/data/nodejs/server/usability-space-bot-engine/menu"
DIR_1="$BASE_1/$1/project"
DIR_2="$BASE_2/$2"
rm -rf DIR_2
cp DIR_1/. DIR_2
}
copy_menu bookocean-bot/bookocean-bot-developer-hosting-regru bookocean-bot-developer-hosting-regru
copy_menu bookocean-bot/bookocean-bot-production-hosting-regru bookocean-bot-production-hosting-regru
copy_menu bookocean-bot/bookocean-bot-user-hosting-regru bookocean-bot-user-hosting-regru
copy_menu bookocean-bot/bookocean-bot-user-hosting-regru-0000-1802660270 bookocean-bot-user-hosting-regru-0000-1802660270
copy_menu client-bot/client-bot-user-hosting-regru client-bot-user-hosting-regru
copy_menu sinar-bot/sinar-bot-telegramsites-hosting-regru sinar-bot-telegramsites-hosting-regru