Update wording and formatting
This commit is contained in:
parent
24b0a991b0
commit
4bcd059b40
41
README.md
41
README.md
@ -14,21 +14,21 @@ A easy tool for frequently used TrueNAS SCALE CLI utilities.
|
|||||||
|
|
||||||
## Synopsis
|
## Synopsis
|
||||||
|
|
||||||
TrueTool is a commandline tool, designed to enable some features of TrueNAS SCALE that are either not-enabled by default or not-available in the Web-GUI.
|
TrueTool is a command line tool, designed to enable some features of TrueNAS SCALE that are either not-enabled by default or not-available in the Web-GUI.
|
||||||
It also offers a few handy shortcuts for commonly required chores, like: Enabling Apt or Helm
|
It also offers a few handy shortcuts for commonly required chores, like: Enabling Apt or Helm
|
||||||
|
|
||||||
## Arguments
|
## Arguments
|
||||||
|
|
||||||
| Flag | Example | Parameter | Description |
|
| Flag | Example | Parameter | Description |
|
||||||
|----------------- |------------------------ |----------- |--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
| --------------- | ---------------------- | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| --delete-backup | --delete-backup | None | Opens a menu to delete backups<br>_Useful if you need to delete old system backups or backups from other scripts_ |
|
| --delete-backup | --delete-backup | None | Opens a menu to delete backups<br>_Useful if you need to delete old system backups or backups from other scripts_ |
|
||||||
| --restore | --restore | None | Restore TrueTool specific `ix-applications dataset` snapshot |
|
| --restore | --restore | None | Restore TrueTool specific `ix-applications dataset` snapshot |
|
||||||
| --mount | --mount | None | Initiates mounting feature<br>Choose between unmounting and mounting PVC data |
|
| --mount | --mount | None | Initiates mounting feature<br>Choose between unmounting and mounting PVC data |
|
||||||
| --dns | --dns | None | list all of your applications DNS names and their web ports
|
| --dns | --dns | None | list all of your applications DNS names and their web ports |
|
||||||
| --list-backups | --list-backups | None | Prints a list of backups available
|
| --list-backups | --list-backups | None | Prints a list of backups available |
|
||||||
| --helm-enable | --helm-enable | None | Enables Helm command access on SCALE
|
| --helm-enable | --helm-enable | None | Enables Helm command access on SCALE |
|
||||||
| --apt-enable | --apt-enable | None | Enables Apt command access on SCALE
|
| --apt-enable | --apt-enable | None | Enables Apt command access on SCALE |
|
||||||
| --no-color | --no-color | None | Disables showing colors in terminal output, usefull for SCALE Email output
|
| --no-color | --no-color | None | Disables showing colors in terminal output, usefull for SCALE Email output |
|
||||||
| -U | -U | None | Update applications, ignoring major version changes |
|
| -U | -U | None | Update applications, ignoring major version changes |
|
||||||
| -u | -u | None | Update applications, do NOT update if there was a major version change |
|
| -u | -u | None | Update applications, do NOT update if there was a major version change |
|
||||||
| -b | -b 14 | Integer | Backup `ix-appliactions` dataset<br>_Creates backups up to the number you've chosen_ |
|
| -b | -b 14 | Integer | Backup `ix-appliactions` dataset<br>_Creates backups up to the number you've chosen_ |
|
||||||
@ -38,30 +38,31 @@ It also offers a few handy shortcuts for commonly required chores, like: Enablin
|
|||||||
| -s | -s | None | Sync Catalogs prior to updating |
|
| -s | -s | None | Sync Catalogs prior to updating |
|
||||||
| -p | -p | None | Prune old/unused docker images |
|
| -p | -p | None | Prune old/unused docker images |
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
|
||||||
## How to Install
|
## How to Install
|
||||||
|
|
||||||
### Create a Scripts Dataset
|
### Create a Scripts Dataset
|
||||||
|
|
||||||
In this example we created a `scripts` dataset on the Truenas SCALE system, feel free to use another folder.
|
In this example we created a `scripts` dataset on the TrueNAS SCALE system, feel free to use another folder.
|
||||||
|
|
||||||
### Open a Terminal
|
### Open a Terminal
|
||||||
|
|
||||||
**Change Directory to your scripts folder**
|
**Change Directory to your scripts folder**
|
||||||
|
|
||||||
```
|
```
|
||||||
cd /mnt/pool/scripts
|
cd /mnt/pool/scripts
|
||||||
```
|
```
|
||||||
|
|
||||||
**Git Clone truetool**
|
**Git Clone truetool**
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone https://github.com/truecharts/truetool.git
|
git clone https://github.com/truecharts/truetool.git
|
||||||
```
|
```
|
||||||
|
|
||||||
**Change Directory to truetool folder**
|
**Change Directory to truetool folder**
|
||||||
|
|
||||||
```
|
```
|
||||||
cd truetool
|
cd truetool
|
||||||
```
|
```
|
||||||
@ -76,11 +77,12 @@ TrueTool updates itself automatically.
|
|||||||
|
|
||||||
<br >
|
<br >
|
||||||
|
|
||||||
### Update with your Cron Job
|
### Update apps with on a schedule
|
||||||
|
|
||||||
Here, we will update the script prior to running it, incase there is a bugfix, or any new additions to the script
|
Here, we will update the apps using a cronjob
|
||||||
|
|
||||||
**Cron Job Command**
|
**Cron Job Command**
|
||||||
|
|
||||||
```
|
```
|
||||||
bash /mnt/pool/scripts/truetool/truetool.sh -b 14 -sup
|
bash /mnt/pool/scripts/truetool/truetool.sh -b 14 -sup
|
||||||
```
|
```
|
||||||
@ -97,33 +99,30 @@ bash /mnt/pool/scripts/truetool/truetool.sh -b 14 -sup
|
|||||||
1. Click Add
|
1. Click Add
|
||||||
|
|
||||||
| Name | Value | Reason |
|
| Name | Value | Reason |
|
||||||
|------------------------ |------------------------------------------------------------------------------------------------------------------- |------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
| ---------------------- | -------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `Description` | TrueTool Update apps | This is up to you, put whatever you think is a good description in here |
|
| `Description` | TrueTool Update apps | This is up to you, put whatever you think is a good description in here |
|
||||||
| `Command` | `bash /PATH/TO/truetool_DIRECTORY/truetool.sh --no-color -b 14 -sup` | This is the command you will be running on your schedule, example: `bash /mnt/speed/scripts/truetool/truetool.sh -b 14 -sup` |
|
| `Command` | `bash /PATH/TO/truetool_DIRECTORY/truetool.sh --no-color -b 14 -sup` | This is the command you will be running on your schedule, example: `bash /mnt/speed/scripts/truetool/truetool.sh -b 14 -sup` |
|
||||||
| `Run As User` | `root` | Running the script as `root` is REQUIRED. You cannot access all of the kubernetes functions without this user. |
|
| `Run As User` | `root` | Running the script as `root` is REQUIRED. You cannot access all of the kubernetes functions without this user. |
|
||||||
| `Schedule` | Up to you, example: `0400` | Again up to you |
|
| `Schedule` | Up to you, example: `0400` | Again up to you |
|
||||||
| `Hide Standard Output` | `False` or Unticked | It's best to keep an eye on updates and enable this to recieve email reports |
|
| `Hide Standard Output` | `False` or Un-ticked | It's best to keep an eye on updates and enable this to receive email reports |
|
||||||
| `Hide Standard Error` | `False` or Unticked | We definately want to see what errors occured during updating |
|
| `Hide Standard Error` | `False` or Un-ticked | We definitely want to see what errors occurred during updating |
|
||||||
| `Enabled` | `True` or Ticked | This will Enable the script to run on your schedule |
|
| `Enabled` | `True` or Ticked | This will Enable the script to run on your schedule |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br >
|
<br >
|
||||||
<br >
|
<br >
|
||||||
|
|
||||||
### Additional Information
|
### Additional Information
|
||||||
|
|
||||||
|
|
||||||
#### TrueTool vs HeavyScript
|
#### TrueTool vs HeavyScript
|
||||||
|
|
||||||
TrueTool and HeavyScript are based, in essence, based on the the original (python based) TrueUpdate and TrueTool.
|
TrueTool and HeavyScript are based, in essence, based on the the original (python based) TrueUpdate and TrueTool.
|
||||||
Then Support-Manager for TrueCharts, HeavyBullets8, ported this to Bash and started adding some additional logic and options for tasks we frequently needed our users to do, such as mounting PVC's.
|
Then Support-Manager for TrueCharts, HeavyBullets8, ported this to Bash and started adding some additional logic and options for tasks we frequently needed our users to do, such as mounting PVC's.
|
||||||
|
|
||||||
After a month or so, the TrueCharts Team officially started refactoring this expanded bash-port. Due to personal reasons, HeavyBullets by then decided to seperate from TrueCharts after merging the TrueCharts refactor into his own work. The beauty of OpenSource.
|
After a month or so, the TrueCharts Team officially started refactoring this expanded bash-port. Due to personal reasons, HeavyBullets by then decided to separate from TrueCharts after merging the TrueCharts refactor into his own work. The beauty of OpenSource.
|
||||||
|
|
||||||
From this point onwards the HeavyScript and TrueTool diverged a bit.
|
From this point onwards the HeavyScript and TrueTool diverged a bit.
|
||||||
We internally review changes within our staff team, to verify we somewhat stick to best-practices. This means, in some cases, we decided not to port certain features from HeavyScript and did decide to add features we think are usefull and safe.
|
We internally review changes within our staff team, to verify we somewhat stick to best-practices. This means, in some cases, we decided not to port certain features from HeavyScript and did decide to add features we think are useful and safe.
|
||||||
But this also means we can give guarantees TrueTool works optimally with our Catalog of TrueNAS SCALE Apps, as well as official Apps.
|
But this also means we can give guarantees TrueTool works optimally with our Catalog of TrueNAS SCALE Apps, as well as official Apps.
|
||||||
|
|
||||||
Users from HeavyScript can safely start using TrueTool, as we've made precautions to ensure the backups take over smoothly.
|
Users from HeavyScript can safely start using TrueTool, as we've made precautions to ensure the backups take over smoothly.
|
||||||
We, however, do *not* advice using HeavyScript with TrueCharts Apps. Not because it's a bad App, but because we offer an alternative that is validated by our Staff.
|
We, however, do _not_ advice using HeavyScript with TrueCharts Apps. Not because it's a bad App, but because we offer an alternative that is validated by our Staff.
|
||||||
|
Loading…
Reference in New Issue
Block a user