This repository allows you to create a place to store and run your scripts. It is designed to allow someone with a low level of knowledge and skill to run scripts which normally would require a high level of access. When someone connects to the container using SSH they are provided a menu to select which scripts they want to run. Templates are provided to try and make it easier to setup new scripts.
There are two volumes which should be created or mounted to keep persistance within the container.
- /mnt
- /root/bak
/mnt is the location where all of your scripts should be placed.
The users created in the container are backed up to the /root/bak volume.
Several language installers have been included with the toolbox which will allow you to do scripting easily. The installers can be found under the "Utils" section in the menu then "Installers". Each installer will also create a section in the menu to store the scripts for that language.
Each script should be packaged into a folder which contains the following files:
- name
- run.sh
The 'name' file should contain a short description of what the script does. This will be displayed in the menu when a user is going through the scripts.
This is the file that is going to be run when a script is selected from the menu. This should be kept simple and should check to make sure any dependancies are already installed before attempting to execute the script. This script should be in bash but can then run any other scripts you want.
Templates are still being developed, the intent is to make them completely able to be utilized from the menu system.
- Go to the /mnt/templates/ folder
- Copy the template folder to location you want it to appear in the menu
- Edit the "name" file to contain the name of your new script
- Edit the "run.sh" to run your code NOTE: It is recommended that you do dependancy checks before your script runs.
The following languages have built in support once you run the installer for the language:
- ansible
- git
- MS SQL scripts using Python3
- powershell (Linux version)
- python3