We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 33cfad5 + f50a336 commit aa321c2Copy full SHA for aa321c2
functions
@@ -631,7 +631,7 @@ function restart_service() {
631
elif [[ "$os_PACKAGE" = "rpm" ]]; then
632
sudo /sbin/service $1 restart
633
elif [[ "$os_PACKAGE" = "ebuild" ]]; then
634
- sudo rc-service $1 restart
+ sudo /sbin/rc-service $1 restart
635
fi
636
}
637
lib/cinder
@@ -170,7 +170,7 @@ function init_cinder() {
170
mkdir -p $CINDER_STATE_PATH/volumes
171
172
if sudo vgs $VOLUME_GROUP; then
173
- if [[ ${os_PACKAGE} = (rpm|ebuild) ]]; then
+ if [[ ${os_PACKAGE} =~ (rpm|ebuild) ]]; then
174
# RPM nor Gentoo doesn't start the service
175
start_service tgtd
176
0 commit comments