]> git.pld-linux.org Git - packages/bnc.git/blob - bnc-setup.patch
- added bnc service
[packages/bnc.git] / bnc-setup.patch
1 diff -u -u bnc2.9.3.orig/bncsetup bnc2.9.3/bncsetup
2 --- bnc2.9.3.orig/bncsetup      2004-10-09 23:54:49.000000000 +0300
3 +++ bnc2.9.3/bncsetup   2005-02-03 14:46:05.000000000 +0200
4 @@ -85,15 +85,15 @@
5  
6  }
7  
8 -if ! [ -e ./mkpasswd ]
9 +if ! [ -e /usr/bin/bncmkpasswd ]
10  then
11    echo "You need to Make the package before you can use this script"
12 -  echo "(required ./mkpasswd)"
13 +  echo "(required /usr/bin/bncmkpasswd)"
14    bsclean 0
15  fi
16  
17  echo "BAD\$" > $TMPFILE
18 -echo "Test" | ./mkpasswd -s >> $TMPFILE
19 +echo "Test" | /usr/bin/bncmkpasswd -s >> $TMPFILE
20  CRCYS=$(cat $TMPFILE | grep '\$' | tail -1 )
21  
22  
23 @@ -238,13 +238,13 @@
24  
25  if [ x$ERRORLEVEL = x0 ]
26  then 
27 -  if [ -x ./mkpasswd ]
28 +  if [ -x /usr/bin/bncmkpasswd ]
29    then
30 -    SUPERPASS="+"$(echo "$SUPERPASS" | ./mkpasswd -s)
31 -    BNCPASS="+"$(echo "$BNCPASS" | ./mkpasswd -s)
32 +    SUPERPASS="+"$(echo "$SUPERPASS" | /usr/bin/bncmkpasswd -s)
33 +    BNCPASS="+"$(echo "$BNCPASS" | /usr/bin/bncmkpasswd -s)
34    else
35      clear
36 -    echo "You have not did ./configure and make so there is no ./mkpasswd"
37 +    echo "You have not done ./configure and make so there is no /usr/bin/bncmkpasswd"
38      echo "This program is required to produce the encryption"
39      bsclean 0
40    fi
This page took 0.10103 seconds and 3 git commands to generate.