-
Notifications
You must be signed in to change notification settings - Fork 39
/
install.sh
578 lines (499 loc) · 18.5 KB
/
install.sh
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
#!/bin/bash
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[0;34m'
NC='\033[0m'
CURRENT_DIR=$(
cd "$(dirname "$0")" || exit
pwd
)
LANG_FILE=".selected_language"
LANG_DIR="$CURRENT_DIR/lang"
AVAILABLE_LANGS=("en" "zh" "fa" "pt-BR")
declare -A LANG_NAMES
LANG_NAMES=( ["en"]="English" ["zh"]="Chinese 中文(简体)" ["fa"]="Persian" ["pt-BR"]="Português (Brasil)" )
if [ -f "$CURRENT_DIR/$LANG_FILE" ]; then
selected_lang=$(cat "$CURRENT_DIR/$LANG_FILE")
else
echo "en" > "$CURRENT_DIR/$LANG_FILE"
source "$LANG_DIR/en.sh"
echo "$TXT_LANG_PROMPT_MSG"
for i in "${!AVAILABLE_LANGS[@]}"; do
lang_code="${AVAILABLE_LANGS[i]}"
echo "$((i + 1)). ${LANG_NAMES[$lang_code]}"
done
read -p "$TXT_LANG_CHOICE_MSG" lang_choice
if [[ $lang_choice -ge 1 && $lang_choice -le ${#AVAILABLE_LANGS[@]} ]]; then
selected_lang=${AVAILABLE_LANGS[$((lang_choice - 1))]}
echo "$TXT_LANG_SELECTED_CONFIRM_MSG ${LANG_NAMES[$selected_lang]}"
echo "$selected_lang" > "$CURRENT_DIR/$LANG_FILE"
else
echo "$TXT_LANG_INVALID_MSG"
selected_lang="en"
echo "$selected_lang" > "$CURRENT_DIR/$LANG_FILE"
fi
fi
LANGFILE="$LANG_DIR/$selected_lang.sh"
if [ -f "$LANGFILE" ]; then
source "$LANGFILE"
else
echo -e "${RED} $TXT_LANG_NOT_FOUND_MSG $LANGFILE${NC}"
exit 1
fi
clear
function log() {
message="[1Panel Log]: $1 "
case "$1" in
*"$TXT_RUN_AS_ROOT"*)
echo -e "${RED}${message}${NC}" 2>&1 | tee -a "${CURRENT_DIR}"/install.log
;;
*"$TXT_SUCCESS_MESSAGE"* )
echo -e "${GREEN}${message}${NC}" 2>&1 | tee -a "${CURRENT_DIR}"/install.log
;;
*"$TXT_IGNORE_MESSAGE"*|*"$TXT_SKIP_MESSAGE"* )
echo -e "${YELLOW}${message}${NC}" 2>&1 | tee -a "${CURRENT_DIR}"/install.log
;;
* )
echo -e "${BLUE}${message}${NC}" 2>&1 | tee -a "${CURRENT_DIR}"/install.log
;;
esac
}
cat << EOF
██╗ ██████╗ █████╗ ███╗ ██╗███████╗██╗
███║ ██╔══██╗██╔══██╗████╗ ██║██╔════╝██║
╚██║ ██████╔╝███████║██╔██╗ ██║█████╗ ██║
██║ ██╔═══╝ ██╔══██║██║╚██╗██║██╔══╝ ██║
██║ ██║ ██║ ██║██║ ╚████║███████╗███████╗
╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝╚══════╝
EOF
log "$TXT_START_INSTALLATION"
function Check_Root() {
if [[ $EUID -ne 0 ]]; then
log "$TXT_RUN_AS_ROOT"
exit 1
fi
}
function Prepare_System(){
if which 1panel >/dev/null 2>&1; then
log "$TXT_PANEL_ALREADY_INSTALLED"
exit 1
fi
}
function Set_Dir(){
if read -t 120 -p "$TXT_SET_INSTALL_DIR" PANEL_BASE_DIR;then
if [[ "$PANEL_BASE_DIR" != "" ]];then
if [[ "$PANEL_BASE_DIR" != /* ]];then
log "$TXT_PROVIDE_FULL_PATH"
Set_Dir
fi
if [[ ! -d $PANEL_BASE_DIR ]];then
mkdir -p "$PANEL_BASE_DIR"
log "$TXT_SELECTED_INSTALL_PATH $PANEL_BASE_DIR"
fi
else
PANEL_BASE_DIR=/opt
log "$TXT_SELECTED_INSTALL_PATH $PANEL_BASE_DIR"
fi
else
PANEL_BASE_DIR=/opt
log "$TXT_TIMEOUT_USE_DEFAULT_PATH"
fi
}
ACCELERATOR_URL="https://docker.1panelproxy.com"
DAEMON_JSON="/etc/docker/daemon.json"
BACKUP_FILE="/etc/docker/daemon.json.1panel_bak"
function create_daemon_json() {
log "$TXT_CREATE_NEW_CONFIG ${DAEMON_JSON}..."
mkdir -p /etc/docker
echo '{
"registry-mirrors": ["'"$ACCELERATOR_URL"'"]
}' | tee "$DAEMON_JSON" > /dev/null
log "$TXT_ACCELERATION_CONFIG_ADDED"
}
function configure_accelerator() {
read -p "$TXT_ACCELERATION_CONFIG_ADD " configure_accelerator
if [[ "$configure_accelerator" == "y" ]]; then
if [ -f "$DAEMON_JSON" ]; then
log "$TXT_ACCELERATION_CONFIG_EXISTS ${BACKUP_FILE}."
cp "$DAEMON_JSON" "$BACKUP_FILE"
create_daemon_json
else
create_daemon_json
fi
log "$TXT_RESTARTING_DOCKER"
systemctl daemon-reload
systemctl restart docker
log "$TXT_DOCKER_RESTARTED"
else
log "$TXT_ACCELERATION_CONFIG_NOT"
fi
}
function Install_Docker(){
if which docker >/dev/null 2>&1; then
docker_version=$(docker --version | grep -oE '[0-9]+\.[0-9]+' | head -n 1)
major_version=${docker_version%%.*}
minor_version=${docker_version##*.}
if [[ $major_version -lt 20 ]]; then
log "$TXT_LOW_DOCKER_VERSION"
fi
if [[ $(curl -s ipinfo.io/country) == "CN" ]]; then
configure_accelerator
fi
else
log "$TXT_DOCKER_INSTALL_ONLINE"
if [[ $(curl -s ipinfo.io/country) == "CN" ]]; then
sources=(
"https://mirrors.aliyun.com/docker-ce"
"https://mirrors.tencent.com/docker-ce"
"https://mirrors.163.com/docker-ce"
"https://mirrors.cernet.edu.cn/docker-ce"
)
docker_install_scripts=(
"https://get.docker.com"
"https://testingcf.jsdelivr.net/gh/docker/docker-install@master/install.sh"
"https://cdn.jsdelivr.net/gh/docker/docker-install@master/install.sh"
"https://fastly.jsdelivr.net/gh/docker/docker-install@master/install.sh"
"https://gcore.jsdelivr.net/gh/docker/docker-install@master/install.sh"
"https://raw.githubusercontent.com/docker/docker-install/master/install.sh"
)
get_average_delay() {
local source=$1
local total_delay=0
local iterations=2
local timeout=2
for ((i = 0; i < iterations; i++)); do
delay=$(curl -o /dev/null -s -m $timeout -w "%{time_total}\n" "$source")
if [ $? -ne 0 ]; then
delay=$timeout
fi
total_delay=$(awk "BEGIN {print $total_delay + $delay}")
done
average_delay=$(awk "BEGIN {print $total_delay / $iterations}")
echo "$average_delay"
}
min_delay=99999999
selected_source=""
for source in "${sources[@]}"; do
average_delay=$(get_average_delay "$source" &)
if (( $(awk 'BEGIN { print '"$average_delay"' < '"$min_delay"' }') )); then
min_delay=$average_delay
selected_source=$source
fi
done
wait
if [ -n "$selected_source" ]; then
log "$TXT_CHOOSE_LOWEST_LATENCY_SOURCE $selected_source,$TXT_CHOOSE_LOWEST_LATENCY_DELAY $min_delay"
export DOWNLOAD_URL="$selected_source"
for alt_source in "${docker_install_scripts[@]}"; do
log "$TXT_TRY_NEXT_LINK $alt_source $TXT_DOWNLOAD_DOCKER_SCRIPT"
if curl -fsSL --retry 2 --retry-delay 3 --connect-timeout 5 --max-time 10 "$alt_source" -o get-docker.sh; then
log "$TXT_DOWNLOAD_DOCKER_SCRIPT_SUCCESS $alt_source $TXT_SUCCESSFULLY_MESSAGE"
break
else
log "$TXT_DOWNLOAD_FAIELD $alt_source $TXT_TRY_NEXT_LINK"
fi
done
if [ ! -f "get-docker.sh" ]; then
log "$TXT_ALL_DOWNLOAD_ATTEMPTS_FAILED"
log "bash <(curl -sSL https://linuxmirrors.cn/docker.sh)"
exit 1
fi
sh get-docker.sh 2>&1 | tee -a ${CURRENT_DIR}/install.log
docker_config_folder="/etc/docker"
if [[ ! -d "$docker_config_folder" ]];then
mkdir -p "$docker_config_folder"
fi
docker version >/dev/null 2>&1
if [[ $? -ne 0 ]]; then
log "$TXT_DOCKER_INSTALL_FAIL"
exit 1
else
log "$TXT_DOCKER_INSTALL_SUCCESS"
systemctl enable docker 2>&1 | tee -a "${CURRENT_DIR}"/install.log
configure_accelerator
fi
else
log "$TXT_CANNOT_SELECT_SOURCE"
exit 1
fi
else
log "$TXT_REGIONS_OTHER_THAN_CHINA"
export DOWNLOAD_URL="https://download.docker.com"
curl -fsSL "https://get.docker.com" -o get-docker.sh
sh get-docker.sh 2>&1 | tee -a "${CURRENT_DIR}"/install.log
log "$TXT_DOCKER_START_NOTICE"
systemctl enable docker; systemctl daemon-reload; systemctl start docker 2>&1 | tee -a "${CURRENT_DIR}"/install.log
docker_config_folder="/etc/docker"
if [[ ! -d "$docker_config_folder" ]];then
mkdir -p "$docker_config_folder"
fi
docker version >/dev/null 2>&1
if [[ $? -ne 0 ]]; then
log "$TXT_DOCKER_INSTALL_FAIL"
exit 1
else
log "$TXT_DOCKER_INSTALL_SUCCESS"
fi
fi
fi
}
function Install_Compose(){
docker-compose version >/dev/null 2>&1
if [[ $? -ne 0 ]]; then
log "$TXT_DOCKER_COMPOSE_INSTALL_ONLINE"
arch=$(uname -m)
if [ "$arch" == 'armv7l' ]; then
arch='armv7'
fi
if [[ $(curl -s ipinfo.io/country) == "CN" ]]; then
curl -L https://resource.fit2cloud.com/docker/compose/releases/download/v2.26.1/docker-compose-$(uname -s | tr A-Z a-z)-"$arch" -o /usr/local/bin/docker-compose 2>&1 | tee -a "${CURRENT_DIR}"/install.log
else
curl -L https://github.com/docker/compose/releases/download/v2.26.1/docker-compose-$(uname -s | tr A-Z a-z)-"$arch" -o /usr/local/bin/docker-compose 2>&1 | tee -a "${CURRENT_DIR}"/install.log
fi
if [[ ! -f /usr/local/bin/docker-compose ]];then
log "$TXT_DOCKER_COMPOSE_DOWNLOAD_FAIL"
exit 1
fi
chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose version >/dev/null 2>&1
if [[ $? -ne 0 ]]; then
log "$TXT_DOCKER_COMPOSE_INSTALL_FAIL"
exit 1
else
log "$TXT_DOCKER_COMPOSE_INSTALL_SUCCESS"
fi
else
compose_v=$(docker-compose -v)
if [[ $compose_v =~ 'docker-compose' ]];then
read -p "$TXT_LOWER_VERSION_DETECTED " UPGRADE_DOCKER_COMPOSE
if [[ "$UPGRADE_DOCKER_COMPOSE" == "Y" ]] || [[ "$UPGRADE_DOCKER_COMPOSE" == "y" ]]; then
rm -rf /usr/local/bin/docker-compose /usr/bin/docker-compose
Install_Compose
else
log "$TXT_DOCKER_COMPOSE_VERSION $compose_v"
fi
else
log "$TXT_DOCKER_COMPOSE_INSTALLED_SKIP"
fi
fi
}
function Set_Port(){
DEFAULT_PORT=$(expr $RANDOM % 55535 + 10000)
while true; do
read -p "$TXT_SET_PANEL_PORT $DEFAULT_PORT): " PANEL_PORT
if [[ "$PANEL_PORT" == "" ]];then
PANEL_PORT=$DEFAULT_PORT
fi
if ! [[ "$PANEL_PORT" =~ ^[1-9][0-9]{0,4}$ && "$PANEL_PORT" -le 65535 ]]; then
log "$TXT_INPUT_PORT_NUMBER"
continue
fi
if command -v ss >/dev/null 2>&1; then
if ss -tlun | grep -q ":$PANEL_PORT " >/dev/null 2>&1; then
log "$TXT_PORT_OCCUPIED $PANEL_PORT"
continue
fi
elif command -v netstat >/dev/null 2>&1; then
if netstat -tlun | grep -q ":$PANEL_PORT " >/dev/null 2>&1; then
log "$TXT_PORT_OCCUPIED $PANEL_PORT"
continue
fi
fi
log "$TXT_THE_PORT_U_SET $PANEL_PORT"
break
done
}
function Set_Firewall(){
if which firewall-cmd >/dev/null 2>&1; then
if systemctl status firewalld | grep -q "Active: active" >/dev/null 2>&1;then
log "$TXT_FIREWALL_OPEN_PORT $PANEL_PORT"
firewall-cmd --zone=public --add-port="$PANEL_PORT"/tcp --permanent
firewall-cmd --reload
else
log "$TXT_FIREWALL_NOT_ACTIVE_SKIP"
fi
fi
if which ufw >/dev/null 2>&1; then
if systemctl status ufw | grep -q "Active: active" >/dev/null 2>&1;then
log "$TXT_FIREWALL_OPEN_PORT $PANEL_PORT"
ufw allow "$PANEL_PORT"/tcp
ufw reload
else
log "$TXT_FIREWALL_NOT_ACTIVE_IGNORE"
fi
fi
}
function Set_Entrance(){
DEFAULT_ENTRANCE=`cat /dev/urandom | head -n 16 | md5sum | head -c 10`
while true; do
read -p "$TXT_SET_PANEL_ENTRANCE $DEFAULT_ENTRANCE): " PANEL_ENTRANCE
if [[ "$PANEL_ENTRANCE" == "" ]]; then
PANEL_ENTRANCE=$DEFAULT_ENTRANCE
fi
if [[ ! "$PANEL_ENTRANCE" =~ ^[a-zA-Z0-9_]{3,30}$ ]]; then
log "$TXT_INPUT_ENTRANCE_RULE"
continue
fi
log "$TXT_SET_PANEL_ENTRANCE $PANEL_ENTRANCE"
break
done
}
function Set_Username(){
DEFAULT_USERNAME=$(cat /dev/urandom | head -n 16 | md5sum | head -c 10)
while true; do
read -p "$TXT_SET_PANEL_USER $DEFAULT_USERNAME): " PANEL_USERNAME
if [[ "$PANEL_USERNAME" == "" ]];then
PANEL_USERNAME=$DEFAULT_USERNAME
fi
if [[ ! "$PANEL_USERNAME" =~ ^[a-zA-Z0-9_]{3,30}$ ]]; then
log "$TXT_INPUT_USERNAME_RULE"
continue
fi
log "$TXT_YOUR_PANEL_USERNAME $PANEL_USERNAME"
break
done
}
function passwd() {
charcount='0'
reply=''
while :; do
char=$(
stty cbreak -echo
dd if=/dev/tty bs=1 count=1 2>/dev/null
stty -cbreak echo
)
case $char in
"$(printenv '\000')")
break
;;
"$(printf '\177')" | "$(printf '\b')")
if [ $charcount -gt 0 ]; then
printf '\b \b'
reply="${reply%?}"
charcount=$((charcount - 1))
else
printf ''
fi
;;
"$(printf '\033')") ;;
*)
printf '*'
reply="${reply}${char}"
charcount=$((charcount + 1))
;;
esac
done
printf '\n' >&2
}
function Set_Password(){
DEFAULT_PASSWORD=$(cat /dev/urandom | head -n 16 | md5sum | head -c 10)
while true; do
log "$TXT_SET_PANEL_PASSWORD $DEFAULT_PASSWORD): "
passwd
PANEL_PASSWORD=$reply
if [[ "$PANEL_PASSWORD" == "" ]];then
PANEL_PASSWORD=$DEFAULT_PASSWORD
fi
if [[ ! "$PANEL_PASSWORD" =~ ^[a-zA-Z0-9_!@#$%*,.?]{8,30}$ ]]; then
log "$TXT_INPUT_PASSWORD_RULE"
continue
fi
break
done
}
function Init_Panel(){
log "$TXT_CONFIGURE_PANEL_SERVICE"
RUN_BASE_DIR=$PANEL_BASE_DIR/1panel
mkdir -p "$RUN_BASE_DIR"
rm -rf "$RUN_BASE_DIR:?/*"
cd "${CURRENT_DIR}" || exit
cp ./1panel /usr/local/bin && chmod +x /usr/local/bin/1panel
if [[ ! -f /usr/bin/1panel ]]; then
ln -s /usr/local/bin/1panel /usr/bin/1panel >/dev/null 2>&1
fi
cp ./1pctl /usr/local/bin && chmod +x /usr/local/bin/1pctl
sed -i -e "s#BASE_DIR=.*#BASE_DIR=${PANEL_BASE_DIR}#g" /usr/local/bin/1pctl
sed -i -e "s#ORIGINAL_PORT=.*#ORIGINAL_PORT=${PANEL_PORT}#g" /usr/local/bin/1pctl
sed -i -e "s#ORIGINAL_USERNAME=.*#ORIGINAL_USERNAME=${PANEL_USERNAME}#g" /usr/local/bin/1pctl
ESCAPED_PANEL_PASSWORD=$(echo "$PANEL_PASSWORD" | sed 's/[!@#$%*_,.?]/\\&/g')
sed -i -e "s#ORIGINAL_PASSWORD=.*#ORIGINAL_PASSWORD=${ESCAPED_PANEL_PASSWORD}#g" /usr/local/bin/1pctl
sed -i -e "s#ORIGINAL_ENTRANCE=.*#ORIGINAL_ENTRANCE=${PANEL_ENTRANCE}#g" /usr/local/bin/1pctl
sed -i -e "s#LANGUAGE=.*#LANGUAGE=${selected_lang}#g" /usr/local/bin/1pctl
if [[ ! -f /usr/bin/1pctl ]]; then
ln -s /usr/local/bin/1pctl /usr/bin/1pctl >/dev/null 2>&1
fi
mkdir $RUN_BASE_DIR/geo/
cp -r ./GeoIP.mmdb $RUN_BASE_DIR/geo/
cp -r ./lang /usr/local/bin
cp ./1panel.service /etc/systemd/system
systemctl enable 1panel; systemctl daemon-reload 2>&1 | tee -a "${CURRENT_DIR}"/install.log
log "$TXT_START_PANEL_SERVICE"
systemctl start 1panel | tee -a "${CURRENT_DIR}"/install.log
for b in {1..30}
do
sleep 3
service_status=$(systemctl status 1panel 2>&1 | grep Active)
if [[ $service_status == *running* ]];then
log "$TXT_PANEL_SERVICE_START_SUCCESS"
break;
else
log "$TXT_PANEL_SERVICE_START_ERROR"
exit 1
fi
done
sed -i -e "s#ORIGINAL_PASSWORD=.*#ORIGINAL_PASSWORD=\*\*\*\*\*\*\*\*\*\*#g" /usr/local/bin/1pctl
}
function Get_Ip(){
active_interface=$(ip route get 8.8.8.8 | awk 'NR==1 {print $5}')
if [[ -z $active_interface ]]; then
LOCAL_IP="127.0.0.1"
else
LOCAL_IP=$(ip -4 addr show dev "$active_interface" | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
fi
PUBLIC_IP=$(curl -s https://api64.ipify.org)
if [[ -z "$PUBLIC_IP" ]]; then
PUBLIC_IP="N/A"
fi
if echo "$PUBLIC_IP" | grep -q ":"; then
PUBLIC_IP=[${PUBLIC_IP}]
1pctl listen-ip ipv6
fi
}
function Show_Result(){
log ""
log "$TXT_THANK_YOU_WAITING"
log ""
log "$TXT_BROWSER_ACCESS_PANEL"
log "$TXT_EXTERNAL_ADDRESS http://$PUBLIC_IP:$PANEL_PORT/$PANEL_ENTRANCE"
log "$TXT_INTERNAL_ADDRESS http://$LOCAL_IP:$PANEL_PORT/$PANEL_ENTRANCE"
log "$TXT_PANEL_USER $PANEL_USERNAME"
log "$TXT_PANEL_PASSWORD $PANEL_PASSWORD"
log ""
log "$TXT_PROJECT_OFFICIAL_WEBSITE"
log "$TXT_PROJECT_DOCUMENTATION"
log "$TXT_PROJECT_REPOSITORY"
log ""
log "$TXT_OPEN_PORT_SECURITY_GROUP $PANEL_PORT"
log ""
log "$TXT_REMEMBER_YOUR_PASSWORD"
log ""
log "================================================================"
}
function main(){
Check_Root
Prepare_System
Set_Dir
Install_Docker
Install_Compose
Set_Port
Set_Firewall
Set_Entrance
Set_Username
Set_Password
Init_Panel
Get_Ip
Show_Result
}
main