未验证 提交 d30677f6 编写于 作者: R Rongfeng Fu 提交者: GitHub

v1.2.1 (#79)

上级 bac50132
......@@ -20,6 +20,7 @@
import os
import sys
import new
import time
import logging
import getopt
......@@ -45,4 +46,6 @@ if __name__ == '__main__':
OBD_INSTALL_PRE = os.environ.get('OBD_INSTALL_PRE', '/')
sys.path.append(os.path.join(OBD_INSTALL_PRE, 'usr/obd/lib/executer/executer27/site-packages'))
execfile(sys.argv[1])
del sys.argv[0]
sys.path.append(os.path.dirname(sys.argv[0]))
execfile(sys.argv[0])
......@@ -62,7 +62,7 @@ class Exector(object):
@property
def cmd(self):
if self._cmd is None:
self._cmd = 'alias python=%s; python %%s -h %s -P %s -u %s %s' % (self._exector, self.host, self.port, self.user, "-p '%s'" % self.pwd if self.pwd else '')
self._cmd = '%s %%s -h %s -P %s -u %s %s' % (self._exector, self.host, self.port, self.user, "-p '%s'" % self.pwd if self.pwd else '')
return self._cmd
@host.setter
......
Name: ob-deploy
Version: 1.2.0
Version: 1.2.1
Release: %(echo $RELEASE)%{?dist}
# if you want use the parameter of rpm_create on build time,
# uncomment below
......@@ -95,12 +95,13 @@ cd ${RPM_BUILD_ROOT}/usr/obd/plugins && ln -s oceanbase oceanbase-ce && mkdir -p
%post
# chkconfig: 2345 10 90
# description: obd ....
chmod +x /usr/bin/obd
#mkdir -p /usr/obd/ && cp -rf /root/.obd/plugins /usr/obd/plugins
#chmod 744 /root/.obd/plugins/*
chmod -R 755 /usr/obd/*
chown -R root:root /usr/obd/*
find /usr/obd -type f -exec chmod 644 {} \;
chmod +x /usr/bin/obd
chmod +x /usr/obd/lib/executer/executer27/bin/executer
echo -e 'Installation of obd finished successfully\nPlease source /etc/profile.d/obd.sh to enable it'
#/sbin/chkconfig --add obd
#/sbin/chkconfig obd on
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册