File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ function get_installer() {
3434 echo " download install script to /opt/jumpserver-installer-${VERSION} "
3535 cd /opt || exit 1
3636 if [ ! -d " /opt/jumpserver-installer-${VERSION} " ]; then
37- timeout 60 wget -qO jumpserver-installer-${VERSION} .tar.gz ${DOWNLOAD_URL} /jumpserver/installer/releases/download/${VERSION} /jumpserver-installer-${VERSION} .tar.gz || {
37+ timeout 60 wget --show-progress - qO jumpserver-installer-${VERSION} .tar.gz ${DOWNLOAD_URL} /jumpserver/installer/releases/download/${VERSION} /jumpserver-installer-${VERSION} .tar.gz || {
3838 rm -f /opt/jumpserver-installer-${VERSION} .tar.gz
3939 echo -e " [\033[31m ERROR \033[0m] Failed to download jumpserver-installer-${VERSION} "
4040 exit 1
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ services:
99 command : start web
1010 env_file :
1111 - ${CONFIG_FILE}
12+ environment :
13+ TIME_ZONE : ${TZ:-Asia/Shanghai}
1214 volumes :
1315 - ${CONFIG_DIR}/certs:/opt/jumpserver/data/certs
1416 - ${VOLUME_DIR}/core/data:/opt/jumpserver/data
Original file line number Diff line number Diff line change @@ -161,5 +161,4 @@ USE_LB=1
161161# The current running version number of JumpServer, automatically generated after installation and upgrade
162162#
163163TZ=Asia/Shanghai
164- TIME_ZONE=Asia/Shanghai
165164CURRENT_VERSION=
Original file line number Diff line number Diff line change @@ -149,7 +149,10 @@ function video-worker() {
149149 fi
150150}
151151
152- function main() {
152+ function check_os() {
153+ if [[ -n " $UNCHECK_DEPENDENCIES " ]]; then
154+ return 0
155+ fi
153156 if [[ " ${OS} " == ' Darwin' ]]; then
154157 echo
155158 echo " $( gettext ' Unsupported Operating System Error' ) "
@@ -162,6 +165,11 @@ function main() {
162165 echo " $( gettext ' Windows installer please see' ) : https://github.com/jumpserver/Dockerfile"
163166 exit 0
164167 fi
168+ return 0
169+ }
170+
171+ function main() {
172+ check_os || return 3
165173
166174 if [[ " ${action} " == " help" || " ${action} " == " h" || " ${action} " == " -h" || " ${action} " == " --help" ]]; then
167175 echo " "
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ function get_installer() {
3434 echo " download install script to /opt/jumpserver-installer-${VERSION} "
3535 cd /opt || exit 1
3636 if [ ! -d " /opt/jumpserver-installer-${VERSION} " ]; then
37- timeout 60 wget -qO jumpserver-installer-${VERSION} .tar.gz ${DOWNLOAD_URL} /jumpserver/installer/releases/download/${VERSION} /jumpserver-installer-${VERSION} .tar.gz || {
37+ timeout 60 wget --show-progress - qO jumpserver-installer-${VERSION} .tar.gz ${DOWNLOAD_URL} /jumpserver/installer/releases/download/${VERSION} /jumpserver-installer-${VERSION} .tar.gz || {
3838 rm -f /opt/jumpserver-installer-${VERSION} .tar.gz
3939 echo -e " [\033[31m ERROR \033[0m] Failed to download jumpserver-installer-${VERSION} "
4040 exit 1
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ function download_and_verify() {
2525 md5_url=" ${url} .md5"
2626 fi
2727
28- wget -q " ${md5_url} " -O " ${md5_target_path} " || {
28+ wget --show-progress - q " ${md5_url} " -O " ${md5_target_path} " || {
2929 log_error " $( gettext ' Download fails, check the network is normal' ) "
3030 rm -f " ${md5_target_path} "
3131 exit 1
@@ -38,7 +38,7 @@ function download_and_verify() {
3838 md5_matched=$( check_md5 " ${target_path} " " ${expected_md5} " )
3939 if [[ ! -f " ${target_path} " || " ${md5_matched} " != " 1" ]]; then
4040 echo " $( gettext ' Starting to download' ) : ${url} "
41- wget -q " ${url} " -O " ${target_path} " || {
41+ wget --show-progress - q " ${url} " -O " ${target_path} " || {
4242 log_error " $( gettext ' Download fails, check the network is normal' ) "
4343 rm -f " ${target_path} " " ${md5_target_path} "
4444 exit 1
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ function set_internal_redis() {
185185function set_redis() {
186186 echo_yellow " \n4. $( gettext ' Configure Redis' ) "
187187 redis_engine=" redis"
188- read_from_input redis_engine " $( gettext ' Please enter Redis Engine' ) ? " " redis/sentinel" " ${redis_engine} "
188+ read_from_input redis_engine " $( gettext ' Please enter Redis Engine' ) " " redis/sentinel" " ${redis_engine} "
189189
190190 case " ${redis_engine} " in
191191 redis)
@@ -239,6 +239,17 @@ function init_db() {
239239 fi
240240}
241241
242+ function set_others() {
243+ echo_yellow " \n7. $( gettext ' Configure Others' ) "
244+ lang=$( get_config LANGUAGE_CODE " zh" )
245+ read_from_input lang " $( gettext ' Please enter language' ) " " zh/en/ja/es/ko/ru/vi" " ${lang} "
246+ set_config LANGUAGE_CODE " ${lang} "
247+
248+ timezone=$( get_config TZ " Asia/Shanghai" )
249+ read_from_input timezone " $( gettext ' Please enter timezone' ) " " " " ${timezone} "
250+ set_config TZ " ${timezone} "
251+ }
252+
242253function main() {
243254 if set_secret_key; then
244255 echo_done
@@ -255,6 +266,9 @@ function main() {
255266 if set_service; then
256267 echo_done
257268 fi
269+ if set_others; then
270+ echo_done
271+ fi
258272 if init_db; then
259273 echo_done
260274 fi
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ function check_docker_start() {
179179
180180function check_docker_compose() {
181181 if ! docker compose version & > /dev/null; then
182- echo_failed
182+ echo_failed " $( gettext ' Docker compose is not installed ' ) "
183183 exit 1
184184 fi
185185 echo_done
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
66. " ${BASE_DIR} /utils.sh"
77
88function pre_install() {
9+ if [[ -n " $UNCHECK_DEPENDENCIES " ]]; then
10+ return 0
11+ fi
912 if ! command -v systemctl & > /dev/null; then
1013 docker version & > /dev/null || {
1114 log_error " $( gettext ' The current Linux system does not support systemd management. Please deploy docker by yourself before running this script again' ) "
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ function upgrade_config() {
6666 check_and_set_config " SERVER_HOSTNAME" " ${HOSTNAME} "
6767 check_and_set_config " JUMPSERVER_ENABLE_FONT_SMOOTHING" " true"
6868 check_and_set_config " USE_LB" " 1"
69+ check_and_set_config " VERIFY_EXTERNAL_SSL" " false"
6970 # XPACK
7071 use_xpack=$( get_config_or_env USE_XPACK)
7172 if [[ " ${use_xpack} " == " 1" ]]; then
You can’t perform that action at this time.
0 commit comments