Skip to content

Commit

Permalink
feat: 按项目需求添加配置工具
Browse files Browse the repository at this point in the history
  • Loading branch information
wojiushixiaobai committed Mar 20, 2024
1 parent ceaeef4 commit f8d8da4
Show file tree
Hide file tree
Showing 6 changed files with 1,015 additions and 547 deletions.
1 change: 1 addition & 0 deletions config-example.txt
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ DOMAINS=
# CHEN_ENABLED=0
# KAEL_ENABLED=0
# PANDA_ENABLED=0
# WEB_ENABLED=0

# Lion 开启字体平滑, 优化体验
#
Expand Down
19 changes: 10 additions & 9 deletions jmsctl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,14 @@ function usage() {
echo
echo "Installation Commands: "
echo " install $(gettext 'Install JumpServer')"
echo " upgrade [version] $(gettext 'Upgrade JumpServer')"
echo " check_update $(gettext 'Check for updates JumpServer')"
echo " reconfig $(gettext 'Reconfiguration JumpServer')"
echo
echo "Management Commands: "
echo " start $(gettext 'Start JumpServer')"
echo " stop $(gettext 'Stop JumpServer')"
echo " restart $(gettext 'Restart JumpServer')"
echo " status $(gettext 'Check JumpServer')"
echo " down $(gettext 'Offline JumpServer')"
echo " config $(gettext 'Configuration Tools')"
echo " start $(gettext 'Start JumpServer')"
echo " stop $(gettext 'Stop JumpServer')"
echo " restart $(gettext 'Restart JumpServer')"
echo " status $(gettext 'Check JumpServer')"
echo " down $(gettext 'Offline JumpServer')"
echo " uninstall $(gettext 'Uninstall JumpServer')"
echo
echo "More Commands: "
Expand Down Expand Up @@ -184,7 +182,7 @@ function main() {

if [[ "${action}" == "help" || "${action}" == "h" || "${action}" == "-h" || "${action}" == "--help" ]]; then
echo ""
elif [[ "${action}" == "install" || "${action}" == "reconfig" ]]; then
elif [[ "${action}" == "install" || "${action}" == "config" || "${action}" == "reconfig" ]]; then
echo ""
else
pre_check || return 3
Expand All @@ -200,6 +198,9 @@ function main() {
check_update)
check_update
;;
config)
bash "${SCRIPT_DIR}/config.sh" "$target"
;;
reconfig)
${EXE} down -v
bash "${SCRIPT_DIR}/1_config_jumpserver.sh"
Expand Down
Loading

0 comments on commit f8d8da4

Please sign in to comment.