]> git.mjollnir.org Git - vserverctl.git/commitdiff
Add a newline to the profile file, to stop the vserver complaining
authorNigel McNie <nigel@catalyst.net.nz>
Mon, 2 Apr 2007 08:38:44 +0000 (20:38 +1200)
committerNigel McNie <nigel@freud.wgtn.cat-it.co.nz>
Mon, 2 Apr 2007 08:38:44 +0000 (20:38 +1200)
vserverctl

index 40c8adedf8ce7bfe7e097a8ed2611f5f114508d8..9a96f19d00862d503bbdaa38d469e57b882129d0 100755 (executable)
@@ -87,7 +87,7 @@ if ( $action eq 'add' ) {
         '-m' => $config->{mirror},
     );
     system('vserver', $vsname, 'start');
-    write_file('/etc/vservers/' . $vsname . '/profile', $profile);
+    write_file('/etc/vservers/' . $vsname . '/profile', $profile . "\n");
     write_file($vsroot . 'etc/apt/sources.list', $config->{files}{aptsources});
     # TODO: get the apt-key stuff working
     system('vserver', $vsname, 'apt-get', 'update');