|
@@ -157,7 +157,7 @@ if [[ $deb_release < 8 ]];
|
157
|
157
|
/bin/systemctl enable zramraid.service;
|
158
|
158
|
if [ -f "/lib/systemd/system/libvirt-guests.service" ];
|
159
|
159
|
then
|
160
|
|
- if [ $(cat /lib/systemd/system/libvirt-guests.service|grep zramraid|wc -m ) = 0];
|
|
160
|
+ if [ $(cat /lib/systemd/system/libvirt-guests.service|grep zramraid|wc -m ) = 0 ];
|
161
|
161
|
then
|
162
|
162
|
sed -i '/Requires=virt-guest-shutdown.target/a \'"Requires=zramraid.service" /lib/systemd/system/libvirt-guests.service;
|
163
|
163
|
fi
|
|
@@ -177,12 +177,12 @@ if [[ $deb_release < 8 ]];
|
177
|
177
|
/etc/init.d/zramraid-manager stop;
|
178
|
178
|
update-rc.d -n zramraid-manager remove;
|
179
|
179
|
else
|
180
|
|
- /bin/systemctl stop zramraid-manager;
|
|
180
|
+ /bin/systemctl stop zramraid.service;
|
181
|
181
|
/bin/systemctl disable zramraid.service;
|
182
|
182
|
rm /lib/systemd/system/zramraid.service;
|
183
|
183
|
if [ -f "/lib/systemd/system/libvirt-guests.service" ];
|
184
|
184
|
then
|
185
|
|
- if [ $(cat /lib/systemd/system/libvirt-guests.service|grep zramraid|wc -m ) = 1];
|
|
185
|
+ if [ ! $(cat /lib/systemd/system/libvirt-guests.service|grep zramraid|wc -m ) = 0 ];
|
186
|
186
|
then
|
187
|
187
|
sed -i -e '/'"Requires=zramraid.service"'/d' /lib/systemd/system/libvirt-guests.service;
|
188
|
188
|
fi
|