Skip to content

Commit

Permalink
Merge pull request #7 from vroncevic/dev
Browse files Browse the repository at this point in the history
sync
  • Loading branch information
vroncevic committed Oct 6, 2020
2 parents b9d0793 + e8f11ad commit 618cd39
Show file tree
Hide file tree
Showing 76 changed files with 2,930 additions and 211 deletions.
28 changes: 0 additions & 28 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,4 @@ assignees: vroncevic

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
10 changes: 0 additions & 10 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,4 @@ assignees: vroncevic

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
33 changes: 0 additions & 33 deletions .github/workflows/docker-checker.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/samba_manager_docker_checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: samba_manager docker checker

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build Docker image
id: docker_checker
run: |
echo Building Docker image
build_transcript=$(docker build . --file Dockerfile --tag samba_manager:latest)
[[ "$build_transcript" == *"Successfully"* ]] && echo ::set-output name=status::success || echo ::set-output name=status::failure
- name: Check on failures
if: steps.docker_checker.outputs.status == 'failure'
run: exit 1
39 changes: 39 additions & 0 deletions .github/workflows/samba_manager_shell_checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: samba_manager shell checker

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check syntax script
id: syntax_checker
run: |
bash -n sh_tool/bin/nmb_operation.sh && script_1=0 || script_1=1
bash -n sh_tool/bin/samba_manager.sh && script_2=0 || script_2=1
bash -n sh_tool/bin/smb_info.sh && script_3=0 || script_3=1
bash -n sh_tool/bin/smb_list.sh && script_4=0 || script_4=1
bash -n sh_tool/bin/smb_operation.sh && script_5=0 || script_5=1
bash -n sh_tool/bin/smb_version.sh && script_6=0 || script_6=1
bash -n sh_tool/bin/winbind_operation.sh && script_7=0 || script_7=1
[[ $script_1 -eq 0 && $script_2 -eq 0 && $script_3 -eq 0 && $script_4 -eq 0 && $script_5 -eq 0 && $script_6 -eq 0 && $script_7 -eq 0 ]] && echo ::set-output name=status::success || echo ::set-output name=status::failure
- name: Check size script
id: size_checker
run: |
echo Checking size
code_line_number_1=$(wc -l < sh_tool/bin/nmb_operation.sh)
code_line_number_2=$(wc -l < sh_tool/bin/samba_manager.sh)
code_line_number_3=$(wc -l < sh_tool/bin/smb_info.sh)
code_line_number_4=$(wc -l < sh_tool/bin/smb_list.sh)
code_line_number_5=$(wc -l < sh_tool/bin/smb_operation.sh)
code_line_number_6=$(wc -l < sh_tool/bin/smb_version.sh)
code_line_number_7=$(wc -l < sh_tool/bin/winbind_operation.sh)
[[ $code_line_number_1 -gt 300 || $code_line_number_2 -gt 300 || $code_line_number_3 -gt 300 || $code_line_number_4 -gt 300 || $code_line_number_5 -gt 300 || $code_line_number_6 -gt 300 || $code_line_number_7 -gt 300 ]] && echo ::set-output name=status::failure || echo ::set-output name=status::success
- name: Check on failures
if: steps.syntax_checker.outputs.status == 'failure' || steps.size_checker.outputs.status == 'failure'
run: exit 1
10 changes: 10 additions & 0 deletions .github/workflows/samba_manager_toc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: samba_manager toc

on: push

jobs:
generateTOC:
name: TOC Generator
runs-on: ubuntu-latest
steps:
- uses: technote-space/toc-generator@v2
19 changes: 0 additions & 19 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@
__pycache__/
*.py[cod]
*$py.class
.Python
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
*.manifest
*.spec
.python-version
.idea/
.vscode/
Empty file modified .readthedocs.yml
100644 → 100755
Empty file.
Empty file modified Dockerfile
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
35 changes: 20 additions & 15 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,30 +1,33 @@
# Samba server management.
# Samba server management

**samba_manager** is shell tool for control/operating Samba Server.

Developed in [bash](https://en.wikipedia.org/wiki/Bash_(Unix_shell)) code: **100%**.
Developed in **[bash](https://en.wikipedia.org/wiki/Bash_(Unix_shell))** code: **100%**.

[![samba_manager shell checker](https://github.com/vroncevic/samba_manager/workflows/samba_manager%20shell%20checker/badge.svg)](https://github.com/vroncevic/samba_manager/actions?query=workflow%3A%22samba_manager+shell+checker%22)

The README is used to introduce the tool and provide instructions on
how to install the tool, any machine dependencies it may have and any
other information that should be provided before the tool is installed.

[![GitHub issues open](https://img.shields.io/github/issues/vroncevic/samba_manager.svg)](https://github.com/vroncevic/samba_manager/issues)
[![GitHub contributors](https://img.shields.io/github/contributors/vroncevic/samba_manager.svg)](https://github.com/vroncevic/samba_manager/graphs/contributors)
[![GitHub issues open](https://img.shields.io/github/issues/vroncevic/samba_manager.svg)](https://github.com/vroncevic/samba_manager/issues) [![GitHub contributors](https://img.shields.io/github/contributors/vroncevic/samba_manager.svg)](https://github.com/vroncevic/samba_manager/graphs/contributors)

<!-- START doctoc -->
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents**

- [Installation](#installation)
- [Usage](#usage)
- [Dependencies](#dependencies)
- [Shell tool structure](#shell-tool-structure)
- [Docs](#docs)
- [Copyright and Licence](#copyright-and-licence)
<!-- END doctoc -->
- [Copyright and licence](#copyright-and-licence)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

### INSTALLATION
### Installation

Navigate to release [page](https://github.com/vroncevic/samba_manager/releases) download and extract release archive.
Navigate to release **[page](https://github.com/vroncevic/samba_manager/releases)** download and extract release archive.

To install **samba_manager** type the following:

Expand All @@ -40,7 +43,9 @@ cp -R ~/sh_tool/log/ /root/scripts/samba_manager/ver.1.0/

Or You can use docker to create image/container.

### USAGE
[![samba_manager docker checker](https://github.com/vroncevic/samba_manager/workflows/samba_manager%20docker%20checker/badge.svg)](https://github.com/vroncevic/samba_manager/actions?query=workflow%3A%22samba_manager+docker+checker%22)

### Usage

```
# Create symlink for shell tool
Expand All @@ -53,12 +58,12 @@ export PATH=${PATH}:/root/bin/
samba_manager version
```

### DEPENDENCIES
### Dependencies

**samba_manager** requires next modules and libraries:
* sh_util [https://github.com/vroncevic/sh_util](https://github.com/vroncevic/sh_util)

### SHELL TOOL STRUCTURE
### Shell tool structure

**samba_manager** is based on MOP.

Expand All @@ -80,21 +85,21 @@ Code structure:
└── samba_manager.log
```

### DOCS
### Docs

[![Documentation Status](https://readthedocs.org/projects/samba_manager/badge/?version=latest)](https://samba_manager.readthedocs.io/projects/samba_manager/en/latest/?badge=latest)

More documentation and info at:
* [https://samba_manager.readthedocs.io/en/latest/](https://samba_manager.readthedocs.io/en/latest/)
* [https://www.gnu.org/software/bash/manual/](https://www.gnu.org/software/bash/manual/)

### COPYRIGHT AND LICENCE
### Copyright and licence

[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)

Copyright (C) 2015 by [vroncevic.github.io/samba_manager](https://vroncevic.github.io/samba_manager)

This tool is free software; you can redistribute it and/or modify
**samba_manager** is free software; you can redistribute it and/or modify
it under the same terms as Bash itself, either Bash version 4.2.47 or,
at your option, any later version of Bash 4 you may have available.

Empty file modified _config.yml
100644 → 100755
Empty file.
Empty file modified docs/Makefile
100644 → 100755
Empty file.
Binary file modified docs/build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/build/doctrees/index.doctree
Binary file not shown.
34 changes: 23 additions & 11 deletions docs/build/html/_sources/index.rst.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
SAMBA_MANAGER
samba_manager
--------------

.. toctree::
:hidden:

self

**samba_manager** is shell tool for controlling/operating Samba Server.

Developed in `bash <https://en.wikipedia.org/wiki/Bash_(Unix_shell)>`_ code: **100%**.

|GitHub shell checker|

.. |GitHub shell checker| image:: https://github.com/vroncevic/samba_manager/workflows/samba_manager%20shell%20checker/badge.svg
:target: https://github.com/vroncevic/samba_manager/actions?query=workflow%3A%22samba_manager+shell+checker%22

The README is used to introduce the tool and provide instructions on
how to install the tool, any machine dependencies it may have and any
other information that should be provided before the tool is installed.
Expand All @@ -25,7 +25,12 @@ other information that should be provided before the tool is installed.
.. |Documentation Status| image:: https://readthedocs.org/projects/samba_manager/badge/?version=latest
:target: https://samba_manager.readthedocs.io/projects/samba_manager/en/latest/?badge=latest

INSTALLATION
.. toctree::
:hidden:

self

Installation
-------------

Navigate to release `page`_ download and extract release archive.
Expand All @@ -42,13 +47,20 @@ To install **samba_manager** type the following:
cp -R ~/sh_tool/conf/ /root/scripts/samba_manager/ver.1.0/
cp -R ~/sh_tool/log/ /root/scripts/samba_manager/ver.1.0/
DEPENDENCIES
Or You can use Docker to create image/container.

|GitHub docker checker|

.. |GitHub docker checker| image:: https://github.com/vroncevic/samba_manager/workflows/samba_manager%20docker%20checker/badge.svg
:target: https://github.com/vroncevic/samba_manager/actions?query=workflow%3A%22samba_manager+docker+checker%22

Dependencies
-------------

**samba_manager** requires next modules and libraries:
sh_util `https://github.com/vroncevic/sh_util <https://github.com/vroncevic/sh_util>`_

SHELL TOOL STRUCTURE
Shell tool structure
---------------------

**samba_manager** is based on MOP.
Expand All @@ -72,7 +84,7 @@ Code structure:
└── log/
└── samba_manager.log
COPYRIGHT AND LICENCE
Copyright and licence
----------------------

|License: GPL v3| |License: Apache 2.0|
Expand All @@ -85,7 +97,7 @@ COPYRIGHT AND LICENCE

Copyright (C) 2015 by `vroncevic.github.io/samba_manager <https://vroncevic.github.io/samba_manager>`_

This tool is free software; you can redistribute it and/or modify it
**samba_manager** is free software; you can redistribute it and/or modify it
under the same terms as Bash itself, either Bash version 4.2.47 or,
at your option, any later version of Bash 4 you may have available.

2 changes: 1 addition & 1 deletion docs/build/html/_static/css/badge_only.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 618cd39

Please sign in to comment.