Skip to content

Commit

Permalink
修正安装插件时没有自动选择节点的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
showpy committed Jun 22, 2019
1 parent b64c7bd commit 048c97e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions class/panelPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,7 @@ def install_sync(self,pluginInfo,get):
if os.path.exists(pluginInfo['install_checks']): update =pluginInfo['versions'][0]['version_msg']
return self.update_zip(None,toFile,update);
else:
if not 'download_url' in session: session['download_url'] = 'http://download.bt.cn';
download_url = session['download_url'] + '/install/plugin/' + pluginInfo['name'] + '/install.sh';
download_url = public.get_url() + '/install/plugin/' + pluginInfo['name'] + '/install.sh';
toFile = '/tmp/%s.sh' % pluginInfo['name']
public.downloadFile(download_url,toFile);
os.system('/bin/bash ' + toFile + ' install > /tmp/panelShell.pl');
Expand Down

0 comments on commit 048c97e

Please sign in to comment.