diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2013-04-08 16:49:57 +0000 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2013-04-08 16:49:57 +0000 |
commit | 2b7803f57ebde9c8647aeddd68d136b8c93e18d7 (patch) | |
tree | 670ccb79d1c693127c7a61e6b2e7921cd5cbc411 /morphlib/exts/nfsboot.write | |
parent | ba5edf9a0a5d4917d2f97a8421b9f00ec3f75576 (diff) | |
download | morph-2b7803f57ebde9c8647aeddd68d136b8c93e18d7.tar.gz |
Fix nfsboot write-extension
Reviewed-by: Lars Wirzenius <lars.wirzenius@codethink.co.uk>
Diffstat (limited to 'morphlib/exts/nfsboot.write')
-rwxr-xr-x | morphlib/exts/nfsboot.write | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/morphlib/exts/nfsboot.write b/morphlib/exts/nfsboot.write index 60b4d00d..293b1acf 100755 --- a/morphlib/exts/nfsboot.write +++ b/morphlib/exts/nfsboot.write @@ -111,8 +111,8 @@ class NFSBootWriteExtension(morphlib.writeexts.WriteExtension): exports_string = '%s %s(%s)\n' % (rootfs_dest, ip_mask, options) exports_append_sh = '''\ set -eu -target = "$1" -temp = $(mktemp) +target="$1" +temp=$(mktemp) cat "$target" > "$temp" cat >> "$temp" mv "$temp" "$target" @@ -122,7 +122,7 @@ mv "$temp" "$target" ['sh', '-c', exports_append_sh, '--', exports_path], feed_stdin=exports_string) cliapp.ssh_runcmd( - 'root@%s' % location, ['systemctl', 'reload', + 'root@%s' % location, ['systemctl', 'restart', 'nfs-server.service']) def test_good_server(self, server): |