mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-26 21:45:20 +02:00
Implemented dynamic script path to sys-ctl-cln-disc-space
This commit is contained in:
parent
db860e6ae3
commit
763b43b44c
@ -24,7 +24,7 @@ if [ "$force_freeing" = true ]; then
|
||||
|
||||
{% if BACKUPS_FOLDER_PATH is defined and SIZE_PERCENT_MAXIMUM_BACKUP is defined %}
|
||||
echo "cleaning up backups" &&
|
||||
python {{ PATH_ADMINISTRATOR_SCRIPTS }}sys-ctl-cln-backups/sys-ctl-cln-backups.py --backups-folder-path {{ BACKUPS_FOLDER_PATH }} --maximum-backup-size-percent {{SIZE_PERCENT_MAXIMUM_BACKUP}} || exit 2
|
||||
python {{ 'sys-ctl-cln-backups' | get_service_script_path('sh') }} --backups-folder-path {{ BACKUPS_FOLDER_PATH }} --maximum-backup-size-percent {{SIZE_PERCENT_MAXIMUM_BACKUP}} || exit 2
|
||||
{% endif %}
|
||||
|
||||
if pacman -Qs $package > /dev/null ; then
|
||||
|
@ -11,6 +11,6 @@ Checks the health of all mounted Btrfs filesystems by inspecting device error co
|
||||
|
||||
## Usage
|
||||
Just include this role in your playbook; it will:
|
||||
1. Deploy a small shell script under `{{ PATH_ADMINISTRATOR_SCRIPTS }}/sys-ctl-hlth-btrfs/`.
|
||||
1. Deploy a small shell script
|
||||
2. Install a `.service` and `.timer` unit.
|
||||
3. Send alerts via `sys-ctl-alm-compose` if any filesystem shows errors.
|
||||
|
Loading…
x
Reference in New Issue
Block a user