Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compose.libre.sh
Manage
Activity
Members
Labels
Plan
Issues
18
Issue boards
Milestones
Wiki
Code
Merge requests
3
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
libre.sh
compose.libre.sh
Commits
2f952f6f
Commit
2f952f6f
authored
6 years ago
by
Pierre Ozoux
Browse files
Options
Downloads
Plain Diff
Merge branch 'pierreozoux-patch-1' into 'master'
Adds a delete command. See merge request
!179
parents
fab6a854
40e537ff
No related branches found
No related tags found
1 merge request
!179
Adds a delete command.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils/libre
+17
-0
17 additions, 0 deletions
utils/libre
with
17 additions
and
0 deletions
utils/libre
+
17
−
0
View file @
2f952f6f
...
...
@@ -61,6 +61,23 @@ case "$1" in
provision
${
@
:2
}
;;
stats
)
docker stats
$(
docker ps|grep
-v
"NAMES"
|awk
'{ print $NF }'
|tr
"
\n
"
" "
)
;;
delete
)
read
-p
"Are you sure you want to delete
${
2
}
? (yY)"
-n
1
-r
echo
# (optional) move to a new line
if
[[
$REPLY
=
~ ^[Yy]
$
]]
then
cd
/data/domains/
${
2
}
libre stop
libre disable
cd
/data/domains
tar
cvzf
${
2
}
.tgz ./
${
2
}
if
[
-f
./
${
2
}
.tgz
]
;
then
mv
${
2
}
.tgz /data/domains/to_keep/
rm
-rf
/data/domains/
${
2
}
rm
-rf
/system/haproxy/certs/
${
2
}
rm
/system/haproxy/haproxy/certs/
${
2
}
.pem
fi
fi
;;
*
)
echo
"Usage:"
echo
" - start|status|enable|disable|restart|stop: command sent to systemctl."
...
...
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