Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fairblue
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hosting
chat
fairblue
Commits
511f0de6
Commit
511f0de6
authored
4 years ago
by
Gustavo Trott
Browse files
Options
Downloads
Patches
Plain Diff
Removes uninstall script of old libreoffice services, it will not be necessary
parent
58a05acc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bbb-libreoffice/install.sh
+0
-3
0 additions, 3 deletions
bbb-libreoffice/install.sh
bbb-libreoffice/uninstall-bbb-libreoffice.sh
+0
-37
0 additions, 37 deletions
bbb-libreoffice/uninstall-bbb-libreoffice.sh
bbb-libreoffice/uninstall.sh
+0
-4
0 additions, 4 deletions
bbb-libreoffice/uninstall.sh
with
0 additions
and
44 deletions
bbb-libreoffice/install.sh
+
0
−
3
View file @
511f0de6
...
...
@@ -21,9 +21,6 @@ else
echo
"Docker already installed"
;
fi
#Uninstall old version of docker and service if exists (keep temporarily)
./uninstall-bbb-libreoffice.sh
IMAGE_CHECK
=
`
docker image inspect bbb-soffice &> /dev/null
&&
echo
1
||
echo
0
`
if
[
"
$IMAGE_CHECK
"
=
"0"
]
;
then
echo
"Docker image doesn't exists, building"
...
...
This diff is collapsed.
Click to expand it.
bbb-libreoffice/uninstall-bbb-libreoffice.sh
deleted
100755 → 0
+
0
−
37
View file @
58a05acc
#!/bin/bash
set
-e
if
[
"
$EUID
"
-ne
0
]
;
then
echo
"Please run this script as root ( or with sudo )"
;
exit
1
;
fi
;
IMAGE_CHECK
=
`
docker image inspect bbb-libreoffice 2>&1
>
/dev/null
&&
echo
1
||
echo
0
`
if
[
"
$IMAGE_CHECK
"
=
"1"
]
;
then
echo
"Stopping services"
systemctl
--no-pager
--no-legend
--value
--state
=
running |
grep
bbb-libreoffice |
awk
-F
'.service'
'{print $1}'
| xargs
--no-run-if-empty
-n
1 systemctl stop
echo
"Removing image"
docker image
rm
bbb-libreoffice
fi
FOLDER_CHECK
=
`
[
-d
/usr/share/bbb-libreoffice/
]
&&
echo
1
||
echo
0
`
if
[
"
$FOLDER_CHECK
"
=
"1"
]
;
then
echo
"Stopping services"
systemctl
--no-pager
--no-legend
--value
--state
=
running |
grep
bbb-libreoffice |
awk
-F
'.service'
'{print $1}'
| xargs
--no-run-if-empty
-n
1 systemctl stop
echo
"Removing install folder"
rm
-rf
/usr/share/bbb-libreoffice/
echo
"Removing service definitions"
rm
/lib/systemd/system/bbb-libreoffice@.service
find /etc/systemd/ |
grep
bbb-libreoffice | xargs
--no-run-if-empty
-n
1
-I
__
rm
__
systemctl daemon-reload
fi
;
NETWORK_CHECK
=
`
docker network inspect bbb-libreoffice &> /dev/null
&&
echo
1
||
echo
0
`
if
[
"
$NETWORK_CHECK
"
=
"1"
]
;
then
echo
"Removing docker network"
docker network remove bbb-libreoffice
fi
This diff is collapsed.
Click to expand it.
bbb-libreoffice/uninstall.sh
+
0
−
4
View file @
511f0de6
...
...
@@ -7,10 +7,6 @@ if [ "$EUID" -ne 0 ]; then
fi
;
#Uninstall old version of docker and service if exists (keep temporarily)
./uninstall-bbb-libreoffice.sh
IMAGE_CHECK
=
`
docker image inspect bbb-soffice 2>&1
>
/dev/null
&&
echo
1
||
echo
0
`
if
[
"
$IMAGE_CHECK
"
=
"1"
]
;
then
echo
"Removing image"
...
...
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