]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
init: fix typo s/{$update_crush/${update_crush/ 861/head
authorLoic Dachary <loic@dachary.org>
Thu, 21 Nov 2013 17:51:06 +0000 (18:51 +0100)
committerLoic Dachary <loic@dachary.org>
Thu, 21 Nov 2013 17:51:06 +0000 (18:51 +0100)
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
Reviewed-by: Loic Dachary <loic@dachary.org>
src/init-ceph.in
src/upstart/ceph-osd.conf

index 7399abb8f85855f2248c4afb22bf94f2e2f080a2..e001430847059f92d1c0d307a7aa930b83ec24b3 100644 (file)
@@ -317,7 +317,7 @@ for name in $what; do
 
            if [ "$type" = "osd" ]; then
                get_conf update_crush "" "osd crush update on start"
-               if [ "${update_crush:-1}" = "1" -o "{$update_crush:-1}" = "true" ]; then
+               if [ "${update_crush:-1}" = "1" -o "${update_crush:-1}" = "true" ]; then
                    # update location in crush
                    get_conf osd_location_hook "$BINDIR/ceph-crush-location" "osd crush location hook"
                    osd_location=`$osd_location_hook --cluster ceph --id $id --type osd`
index 91ac22c5188c2bf6a950c0b76778ff7f75f7f517..f91c67d8757ee1e1fc328ac9038cd802879b39c8 100644 (file)
@@ -16,7 +16,7 @@ pre-start script
     install -d -m0755 /var/run/ceph
 
     update="$(ceph-conf --cluster=${cluster:-ceph} --name=osd.$id --lookup osd_crush_update_on_start || :)"
-    if [ "${update:-1}" = "1" -o "{$update:-1}" = "true" ]; then
+    if [ "${update:-1}" = "1" -o "${update:-1}" = "true" ]; then
         # update location in crush
        hook="$(ceph-conf --cluster=${cluster:-ceph} --name=osd.$id --lookup osd_crush_location_hook || :)"
        if [ -z "$hook" ]; then