mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-17 00:11:42 +00:00
[Update] 添加jms日志和修改entrypoint
This commit is contained in:
parent
3e6e0153cf
commit
ddf60d2512
@ -12,9 +12,10 @@ if [[ "$1" != "" ]];then
|
|||||||
service=$1
|
service=$1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
trap cleanup EXIT
|
||||||
if [[ "$1" == "bash" ]];then
|
if [[ "$1" == "bash" ]];then
|
||||||
bash
|
bash
|
||||||
|
else
|
||||||
|
python jms start ${service}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
trap cleanup EXIT
|
|
||||||
python jms start ${service}
|
|
||||||
|
5
jms
5
jms
@ -17,6 +17,8 @@ try:
|
|||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
print("Not found __version__: {}".format(e))
|
print("Not found __version__: {}".format(e))
|
||||||
print("Sys path: {}".format(sys.path))
|
print("Sys path: {}".format(sys.path))
|
||||||
|
print("Python is: ")
|
||||||
|
print(subprocess.call('which python', shell=True))
|
||||||
__version__ = 'Unknown'
|
__version__ = 'Unknown'
|
||||||
try:
|
try:
|
||||||
import apps
|
import apps
|
||||||
@ -28,7 +30,8 @@ except ImportError as e:
|
|||||||
try:
|
try:
|
||||||
from apps.jumpserver.conf import load_user_config
|
from apps.jumpserver.conf import load_user_config
|
||||||
CONFIG = load_user_config()
|
CONFIG = load_user_config()
|
||||||
except ImportError:
|
except ImportError as e:
|
||||||
|
print("Import error: {}".format(e))
|
||||||
print("Could not find config file, `cp config_example.yml config.yml`")
|
print("Could not find config file, `cp config_example.yml config.yml`")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user