From: Nigel McNie Date: Mon, 2 Apr 2007 08:38:44 +0000 (+1200) Subject: Add a newline to the profile file, to stop the vserver complaining X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=11158bc3cbd72652de1d6e89fd6ee55b1b40f3c0;p=vserverctl.git Add a newline to the profile file, to stop the vserver complaining --- diff --git a/vserverctl b/vserverctl index 40c8ade..9a96f19 100755 --- a/vserverctl +++ b/vserverctl @@ -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');