From 7880256bc58380f97d6ff10c05df005cbc3b07ab Mon Sep 17 00:00:00 2001 From: einhverfr Date: Fri, 8 Sep 2006 00:36:13 +0000 Subject: Prevented SL2LS.pl from clobbering ledger-smb as in bug 1554246 git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@41 4979c152-3d1c-0410-bac9-87ea11338e46 --- SL2LS.pl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/SL2LS.pl b/SL2LS.pl index 50b1e098..e5ffddcb 100755 --- a/SL2LS.pl +++ b/SL2LS.pl @@ -3,8 +3,12 @@ # Simple script. Right now, all that needs to be done is that the SL directory # needs to be deleted and the sql-ledger.conf needs to be renamed. -open (SL, "< sql-ledger.conf"); -open (LS, "> ledger-smb.conf"); +$filedie = "To install manually: +rename the sql-ledger.conf to ledger-smb.conf +Delete the SL directory (optional but HIGHLY recommended)\n"; +open (SL, "< sql-ledger.conf") || die ( +open (LS, "> ledger-smb.conf") || die { +"Could not open ledger-smb.conf: $! \n $filedie"); while ($line = ){ print LS $line; -- cgit v1.2.3