This repository was archived by the owner on Feb 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ services:
22
22
- redis
23
23
- postgres
24
24
redis :
25
- image : redis:5 .0.9
25
+ image : redis:6 .0.6
26
26
restart : always
27
27
command : ["redis-server", "--requirepass", "${RCTF_REDIS_PASSWORD}"]
28
28
networks :
Original file line number Diff line number Diff line change @@ -26,8 +26,13 @@ do_install() {
26
26
info " Installing rCTF..."
27
27
28
28
if [ ! " $( id -u) " = 0 ]; then
29
- error " You must run this script as root."
30
- exit 1
29
+ error " You must run this script as root."
30
+ exit 1
31
+ fi
32
+
33
+ if [ ! -x " $( command -v curl) " ]; then
34
+ error " curl is not available. You must have curl to install rCTF."
35
+ exit 1
31
36
fi
32
37
33
38
RCTF_INSTALL_PATH=" ${RCTF_INSTALL_PATH:- " /opt/rctf" } "
@@ -101,13 +106,13 @@ do_install() {
101
106
read -r result < /dev/tty
102
107
103
108
if [ " $result " = " y" ]; then
104
- info " Running 'docker-compose up -d'..."
105
- docker-compose up -d
106
- info " rCTF is now running at 127.0.0.1:8080."
107
- exit 0
109
+ info " Running 'docker-compose up -d'..."
110
+ docker-compose up -d
111
+ info " rCTF is now running at 127.0.0.1:8080."
112
+ exit 0
108
113
else
109
- info " If you would like to start rCTF, run 'docker-compose up -d' in $RCTF_INSTALL_PATH ."
110
- exit 0
114
+ info " If you would like to start rCTF, run 'docker-compose up -d' in $RCTF_INSTALL_PATH ."
115
+ exit 0
111
116
fi
112
117
}
113
118
You can’t perform that action at this time.
0 commit comments