Merge branch 'main' into beta

This commit is contained in:
Heavybullets8 2022-07-29 13:14:34 -06:00 committed by GitHub
commit 57e009cfde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -35,13 +35,16 @@
| -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>
### Examples ### Examples
#### Typical Cron Job #### Typical Cron Job
``` ```
bash heavy_script.sh --self-update -b 14 -i portainer -i arch -i sonarr -i radarr -t 600 -rsp -u 5 bash heavy_script.sh --self-update -b 14 -i portainer -i arch -i sonarr -i radarr -t 600 -rsp -u 5
``` ```
> `-b` is set to 14. Up to 14 snapshots of your ix-applications dataset will be saved > `-b` is set to 14. Up to 14 snapshots of your ix-applications dataset will be saved
@ -61,6 +64,8 @@ bash heavy_script.sh --self-update -b 14 -i portainer -i arch -i sonarr -i radar
> `--self-update` Will update the script prior to running anything else. > `--self-update` Will update the script prior to running anything else.
> `--self-update` Will update the script prior to running anything else.
#### Mounting PVC Data #### Mounting PVC Data
``` ```
@ -87,7 +92,9 @@ bash /mnt/tank/scripts/heavy_script/heavy_script.sh --dns
#### My personal Cron Job #### My personal Cron Job
``` ```
bash /mnt/speed/scripts/heavy_script/heavy_script.sh --self-update -b 14 -rsp -u 10 bash /mnt/speed/scripts/heavy_script/heavy_script.sh --self-update -b 14 -rsp -u 10
``` ```
<br> <br>

View File

@ -1,5 +1,6 @@
#!/bin/bash #!/bin/bash
# cd to script, this ensures the script can find the source scripts below, even when ran from a seperate directory # cd to script, this ensures the script can find the source scripts below, even when ran from a seperate directory
script=$(readlink -f "$0") script=$(readlink -f "$0")
script_path=$(dirname "$script") script_path=$(dirname "$script")
@ -23,10 +24,13 @@ source functions/self_update.sh
source functions/update_apps.sh source functions/update_apps.sh
#If no argument is passed, kill the script. #If no argument is passed, kill the script.
[[ -z "$*" || "-" == "$*" || "--" == "$*" ]] && menu [[ -z "$*" || "-" == "$*" || "--" == "$*" ]] && menu
# Parse script options # Parse script options
while getopts ":sirb:t:uUpSRv-:" opt while getopts ":sirb:t:uUpSRv-:" opt
do do
@ -153,3 +157,4 @@ fi
[[ "$sync" == "true" && -z "$backup" ]] && echo "Syncing catalogs, this takes a LONG time, please wait.." && sync [[ "$sync" == "true" && -z "$backup" ]] && echo "Syncing catalogs, this takes a LONG time, please wait.." && sync
[[ "$update_all_apps" == "true" || "$update_apps" == "true" ]] && commander [[ "$update_all_apps" == "true" || "$update_apps" == "true" ]] && commander
[[ "$prune" == "true" ]] && prune [[ "$prune" == "true" ]] && prune