From 78a10a1ee180201c9c9fc75f3f1a0459fa5edd83 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Sun, 30 Aug 2009 21:14:15 +0530 Subject: [PATCH] compile: another solaris compat fix, to do with "~" system("...") run from perl on sol does not seem to like "~" (regardless of what $SHELL is set to), so use $ENV{HOME} instead thanks again to evocallaghan --- src/gl-compile-conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gl-compile-conf b/src/gl-compile-conf index 811c325..9affc31 100755 --- a/src/gl-compile-conf +++ b/src/gl-compile-conf @@ -232,8 +232,8 @@ close $newkeys_fh or die "close newkeys failed: $!"; # system("vim -d ~/.ssh/authorized_keys ~/.ssh/new_authkeys"); # all done; overwrite the file (use cat to avoid perm changes) -system("cat ~/.ssh/new_authkeys > ~/.ssh/authorized_keys"); -system("rm ~/.ssh/new_authkeys"); +system("cat $ENV{HOME}/.ssh/new_authkeys > $ENV{HOME}/.ssh/authorized_keys"); +system("rm $ENV{HOME}/.ssh/new_authkeys"); # if the gl admin directory (~/.gitolite) is itself a git repo, do an # autocheckin. nothing fancy; this is a "just in case" type of thing.