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"> <script type="text/javascript">
resetPluginWinWidth(480); $.getScript( "/plugins/file?name=samba&f=js/samba.js", function() {
// $.getScript( "/plugins/file?name=webssh&f=js/webssh.js", function() { pluginService('samba');
//}); });
if ($(".term-box #term").text() != 'W') {
layer.closeAll();
webShell();
}
</script> </script>

@ -7,29 +7,36 @@ curPath=`pwd`
rootPath=$(dirname "$curPath") rootPath=$(dirname "$curPath")
rootPath=$(dirname "$rootPath") rootPath=$(dirname "$rootPath")
serverPath=$(dirname "$rootPath") serverPath=$(dirname "$rootPath")
sysName=`uname`
install_tmp=${rootPath}/tmp/bt_install.pl install_tmp=${rootPath}/tmp/bt_install.pl
Install_samba()
Install_webssh()
{ {
echo '正在安装脚本文件...' > $install_tmp 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 echo '安装完成' > $install_tmp
} }
Uninstall_webssh() Uninstall_samba()
{ {
rm -rf $serverPath/webssh rm -rf $serverPath/samba
echo "卸载完成" > $install_tmp echo "卸载完成" > $install_tmp
} }
action=$1 action=$1
if [ "${1}" == 'install' ];then if [ "${1}" == 'install' ];then
Install_webssh Install_samba
else else
Uninstall_webssh Uninstall_samba
fi fi

Loading…
Cancel
Save