Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Volodymyr Melnyk
snmp_stats
Commits
711c79b3
Commit
711c79b3
authored
Nov 28, 2018
by
Volodymyr Melnyk
Browse files
Fix a bug in the installer
parent
0268a24c
Changes
1
Hide whitespace changes
Inline
Side-by-side
sbin/install.sh
View file @
711c79b3
...
...
@@ -14,14 +14,14 @@ _log_file='/dev/null'
centos_release
=
$(
cat
/etc/centos-release
)
case
"
${
centos_release
}
"
in
CentOS Linux release 6.
*
)
"
CentOS Linux release 6.
"
*
)
syvinit_script
=
'/etc/init.d/save_io_stats'
if
[[
!
-f
"
${
syvinit_script
}
"
]]
;
then
_log 1
"Installing System V init script"
cat
"
${
_share_dir
}
/sysvinit/save_io_stats"
>
"
${
syvinit_script
}
"
fi
;;
CentOS Linux release 7.
*
)
"
CentOS Linux release 7.
"
*
)
systemd_service_config
=
'/etc/systemd/system/save_io_stats.service'
if
[[
!
-f
"
${
systemd_service_config
}
"
]]
;
then
_log 1
"Installing systemd service configuration file"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment