pull/109/head
Mr Chen 6 years ago
parent d50afeedc2
commit e6a8102ebd
  1. 24
      plugins/samba/index.html
  2. 27
      plugins/samba/install.sh

@ -1,9 +1,19 @@
<div class="bt-form">
<div class="bt-w-main">
<div class="bt-w-menu">
<p class="bgw" onclick="pluginService('samba');">服务</p>
<p onclick="pluginInitD('samba');">自启动</p>
<p onclick="pluginConfig('samba');">配置修改</p>
<p onclick="pluginLogs('samba','','run_log');">日志</p>
</div>
<div class="bt-w-con pd15">
<div class="soft-man-con"></div>
</div>
</div>
</div>
<script type="text/javascript">
resetPluginWinWidth(480);
// $.getScript( "/plugins/file?name=webssh&f=js/webssh.js", function() {
//});
if ($(".term-box #term").text() != 'W') {
layer.closeAll();
webShell();
}
$.getScript( "/plugins/file?name=samba&f=js/samba.js", function() {
pluginService('samba');
});
</script>

@ -7,29 +7,36 @@ curPath=`pwd`
rootPath=$(dirname "$curPath")
rootPath=$(dirname "$rootPath")
serverPath=$(dirname "$rootPath")
sysName=`uname`
install_tmp=${rootPath}/tmp/bt_install.pl
Install_webssh()
Install_samba()
{
echo '正在安装脚本文件...' > $install_tmp
mkdir -p $serverPath/webssh
echo '1.0' > $serverPath/webssh/version.pl
if [ $sysName == 'Darwin' ]; then
echo 'The development machine is not open!!!' > $install_tmp
exit 0
fi
yum install samba -y
mkdir -p $serverPath/samba
echo '1.0' > $serverPath/samba/version.pl
echo '安装完成' > $install_tmp
}
Uninstall_webssh()
Uninstall_samba()
{
rm -rf $serverPath/webssh
rm -rf $serverPath/samba
echo "卸载完成" > $install_tmp
}
action=$1
if [ "${1}" == 'install' ];then
Install_webssh
Install_samba
else
Uninstall_webssh
Uninstall_samba
fi

Loading…
Cancel
Save