Skip to content

Commit f50a336

Browse files
author
d3llf
committed
Using openrc rc-service to restart. Typo in package tyype for cinder.
1 parent dfd9f66 commit f50a336

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

functions

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,8 +628,10 @@ function restart_service() {
628628
fi
629629
if [[ "$os_PACKAGE" = "deb" ]]; then
630630
sudo /usr/sbin/service $1 restart
631-
else
631+
elif [[ "$os_PACKAGE" = "rpm" ]]; then
632632
sudo /sbin/service $1 restart
633+
elif [[ "$os_PACKAGE" = "ebuild" ]]; then
634+
sudo /sbin/rc-service $1 restart
633635
fi
634636
}
635637

lib/cinder

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ function init_cinder() {
170170
mkdir -p $CINDER_STATE_PATH/volumes
171171

172172
if sudo vgs $VOLUME_GROUP; then
173-
if [[ ${os_PACKAGE} = (rpm|ebuild) ]]; then
173+
if [[ ${os_PACKAGE} =~ (rpm|ebuild) ]]; then
174174
# RPM nor Gentoo doesn't start the service
175175
start_service tgtd
176176
fi

0 commit comments

Comments
 (0)