mirror of https://github.com/jumpserver/jumpserver
commit
232674b1c1
|
@ -2,4 +2,4 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
#
|
#
|
||||||
|
|
||||||
__version__ = "1.4.7"
|
__version__ = "1.4.8"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
<div class="footer fixed">
|
<div class="footer fixed">
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
Version <strong>1.4.7-{% include '_build.html' %}</strong> GPLv2.
|
Version <strong>1.4.8-{% include '_build.html' %}</strong> GPLv2.
|
||||||
<!--<img style="display: none" src="http://www.jumpserver.org/img/evaluate_avatar1.jpg">-->
|
<!--<img style="display: none" src="http://www.jumpserver.org/img/evaluate_avatar1.jpg">-->
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
@ -2,15 +2,20 @@
|
||||||
function cleanup()
|
function cleanup()
|
||||||
{
|
{
|
||||||
local pids=`jobs -p`
|
local pids=`jobs -p`
|
||||||
if [[ "$pids" != "" ]]; then
|
if [[ "${pids}" != "" ]]; then
|
||||||
kill $pids >/dev/null 2>/dev/null
|
kill ${pids} >/dev/null 2>/dev/null
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
service="all"
|
service="all"
|
||||||
if [ "$1" != "" ];then
|
if [[ "$1" != "" ]];then
|
||||||
service=$1
|
service=$1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
trap cleanup EXIT
|
trap cleanup EXIT
|
||||||
python jms start $service
|
if [[ "$1" == "bash" ]];then
|
||||||
|
bash
|
||||||
|
else
|
||||||
|
python jms start ${service}
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
18
jms
18
jms
|
@ -10,14 +10,28 @@ import sys
|
||||||
import signal
|
import signal
|
||||||
|
|
||||||
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||||
sys.path.append(BASE_DIR)
|
sys.path.insert(0, BASE_DIR)
|
||||||
|
|
||||||
|
try:
|
||||||
from apps import __version__
|
from apps import __version__
|
||||||
|
except ImportError as e:
|
||||||
|
print("Not found __version__: {}".format(e))
|
||||||
|
print("Sys path: {}".format(sys.path))
|
||||||
|
print("Python is: ")
|
||||||
|
print(subprocess.call('which python', shell=True))
|
||||||
|
__version__ = 'Unknown'
|
||||||
|
try:
|
||||||
|
import apps
|
||||||
|
print("List apps: {}".format(os.listdir('apps')))
|
||||||
|
print('apps is: {}'.format(apps))
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
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