From 09a73daee7a7a231bdbf9a3da48a9fc9564d2a47 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Tue, 31 Mar 2020 17:50:36 +0200 Subject: [PATCH] Fixed escaping in systemd unit files. --- install.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index a1e79a3..737ca49 100755 --- a/install.sh +++ b/install.sh @@ -20,11 +20,12 @@ EOF for VOLUME in $(awk NF $SCRIPTPATH/volume_list | tr -d "[:blank:]") do + VOLUME_ESCAPED=$(systemd-escape ${VOLUME}) cat << EOF >> /etc/systemd/system/${STACK}.service -After=mnt-cinder-volume@${VOLUME}.service -After=mnt-volumes-${VOLUME}.mount -Wants=mnt-cinder-volume@${VOLUME}.service -Requires=mnt-volumes-${VOLUME}.mount +After=mnt-cinder-volume@${VOLUME_ESCAPED}.service +After=mnt-volumes-${VOLUME_ESCAPED}.mount +Wants=mnt-cinder-volume@${VOLUME_ESCAPED}.service +Requires=mnt-volumes-${VOLUME_ESCAPED}.mount EOF done