Fixed escaping in systemd unit files.
This commit is contained in:
parent
00e7970c44
commit
54d4f0c530
@ -20,11 +20,12 @@ EOF
|
|||||||
|
|
||||||
for VOLUME in $(awk NF $SCRIPTPATH/volume_list | tr -d "[:blank:]")
|
for VOLUME in $(awk NF $SCRIPTPATH/volume_list | tr -d "[:blank:]")
|
||||||
do
|
do
|
||||||
|
VOLUME_ESCAPED=$(systemd-escape ${VOLUME})
|
||||||
cat << EOF >> /etc/systemd/system/${STACK}.service
|
cat << EOF >> /etc/systemd/system/${STACK}.service
|
||||||
After=mnt-cinder-volume@${VOLUME}.service
|
After=mnt-cinder-volume@${VOLUME_ESCAPED}.service
|
||||||
After=mnt-volumes-${VOLUME}.mount
|
After=mnt-volumes-${VOLUME_ESCAPED}.mount
|
||||||
Wants=mnt-cinder-volume@${VOLUME}.service
|
Wants=mnt-cinder-volume@${VOLUME_ESCAPED}.service
|
||||||
Requires=mnt-volumes-${VOLUME}.mount
|
Requires=mnt-volumes-${VOLUME_ESCAPED}.mount
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user