Skip to content
GitLab
Explore
Sign in
libre.sh
compose.libre.sh
Compare revisions
27d6014cce6d51b0fc03d1e9242ed90502039437 to 9171938b63c74cd2ca5f7825cd8fa72a6a8c529e
Commits on Source (2)
add get_size
· aefa3775
Benzidane
authored
Sep 09, 2021
aefa3775
Merge branch 'fb-master-patch-12546' into 'master'
· 9171938b
Michel Memeteau
authored
Sep 09, 2021
add get_size See merge request
!195
9171938b
Show whitespace changes
Inline
Side-by-side
utils/libre
View file @
9171938b
...
@@ -37,6 +37,7 @@ function show_usage {
...
@@ -37,6 +37,7 @@ function show_usage {
echo
" - update: to update the current folder."
echo
" - update: to update the current folder."
echo
" - stats: show docker stats with names."
echo
" - stats: show docker stats with names."
echo
" - delete <domainname>: remove a libre.sh service."
echo
" - delete <domainname>: remove a libre.sh service."
echo
" - getsize <domainname>: give you the size of the installed application"
exit
1
exit
1
}
}
...
@@ -100,6 +101,16 @@ case "$1" in
...
@@ -100,6 +101,16 @@ case "$1" in
rm
/system/haproxy/haproxy/certs/
${
2
}
.pem
rm
/system/haproxy/haproxy/certs/
${
2
}
.pem
fi
fi
fi
;;
fi
;;
getsize
)
# check the current size
if
[
$#
-ne
2
]
;
then
echo
"getsize requires a domainname argument."
exit
1
fi
SIZE
=
"
`
du
-hs
${
2
}
`
"
#SIZE=${SIZE%G*}
echo
$(
du
-hs
${
2
}
)
|cut
-d
' '
-f
1
;;
*
)
*
)
show_usage
show_usage
esac
esac