Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
backupninja
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lyz
backupninja
Commits
8ed2f8de
Commit
8ed2f8de
authored
11 years ago
by
Christian Prause
Committed by
intrigeri
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Added suse to the list of supported OS
parent
c6418f2f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
handlers/sys.in
+12
-2
12 additions, 2 deletions
handlers/sys.in
with
12 additions
and
2 deletions
handlers/sys.in
+
12
−
2
View file @
8ed2f8de
...
...
@@ -53,6 +53,11 @@ then
os
=
redhat
debug
"Redhat detected"
osversion
=
"/etc/redhat-release"
elif
[
-f
/etc/SuSE-release
]
then
os
=
suse
debug
"SuSE detected"
osversion
=
"/etc/SuSE-release"
else
warning
"Unknown OS detected!"
fi
...
...
@@ -66,14 +71,14 @@ if [ ! -d $parentdir ]; then
mkdir
-p
$parentdir
fi
if
[
$os
=
"debian"
]
if
[
"
$os
"
=
"debian"
]
then
getconf packagesfile
$parentdir
/dpkg-selections.txt
getconf packagemgr
`
which dpkg
`
getconf packagemgroptions
' --get-selections *'
getconf selectionsfile
$parentdir
/debconfsel.txt
getconf debconfgetselections
`
which debconf-get-selections
`
elif
[
$os
=
"redhat"
]
elif
[
"
$os
"
=
"redhat"
]
then
getconf packagesfile
$parentdir
/rpmpackages.txt
getconf packagemgr
`
which rpm
`
...
...
@@ -81,6 +86,11 @@ then
getconf SYSREPORT
`
which sysreport
`
getconf sysreport_options
' -norpm '
elif
[
"
$os
"
=
"suse"
]
then
getconf packagesfile
$parentdir
/rpmpackages.txt
getconf packagemgr
`
which rpm
`
getconf packagemgroptions
' -qa '
else
getconf packagesfile
$parentdir
/unknownOS.txt
fi
...
...
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