11 lines
225 B
Bash
11 lines
225 B
Bash
#!/bin/bash
|
|
|
|
# find container ids
|
|
containers=( $(pct list | awk -F " " '{print $1}') )
|
|
containers=("${containers[@]:1}")
|
|
|
|
# execute trim for each container
|
|
for container in "${containers[@]}"; do
|
|
pct fstrim $container
|
|
done
|