diff --git a/plugins/samba/index.html b/plugins/samba/index.html index a53f8768e..9c65db6b2 100755 --- a/plugins/samba/index.html +++ b/plugins/samba/index.html @@ -1,9 +1,19 @@ +
+
+
+

服务

+

自启动

+

配置修改

+

日志

+
+
+
+
+
+
+ \ No newline at end of file diff --git a/plugins/samba/install.sh b/plugins/samba/install.sh index 15a0da24e..b1f5aa4d0 100755 --- a/plugins/samba/install.sh +++ b/plugins/samba/install.sh @@ -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