Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compose.libre.sh
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mitchell
compose.libre.sh
Commits
9171938b
Commit
9171938b
authored
3 years ago
by
Michel Memeteau
Browse files
Options
Downloads
Plain Diff
Merge branch 'fb-master-patch-12546' into 'master'
add get_size See merge request
!195
parents
27d6014c
aefa3775
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils/libre
+11
-0
11 additions, 0 deletions
utils/libre
with
11 additions
and
0 deletions
utils/libre
+
11
−
0
View file @
9171938b
...
...
@@ -37,6 +37,7 @@ function show_usage {
echo
" - update: to update the current folder."
echo
" - stats: show docker stats with names."
echo
" - delete <domainname>: remove a libre.sh service."
echo
" - getsize <domainname>: give you the size of the installed application"
exit
1
}
...
...
@@ -100,6 +101,16 @@ case "$1" in
rm
/system/haproxy/haproxy/certs/
${
2
}
.pem
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
esac
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment