Commit 8d11e8f4 authored by Joanne Hugé's avatar Joanne Hugé

Add maxdepth option in slapos-info script

parent 1639da3f
#!/bin/bash
echo "Partition list:" && echo
for i in $(find /srv/slapgrid -type d -name "slappart*"|sed 's#.*slappart\([0-9]*\)#\1#g'|sort -h); do
for i in $(find /srv/slapgrid -maxdepth 1 -type d -name "slappart*"|sed 's#.*slappart\([0-9]*\)#\1#g'|sort -h); do
cd /srv/slapgrid/slappart$i;
if [ -f .installed.cfg ]; then
TITLE=$(grep root-instance-title .installed.cfg |sed 's/.* = \(.*\)/\1/g')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment