Fix variable name used for token file

Submitted by:	Matthew Seaman <m.seaman@infracaninophile.co.uk>
This commit is contained in:
Marc G. Fournier 2006-08-14 20:26:12 +00:00
parent 4c455574a8
commit 0744dfbb6b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=170632
3 changed files with 9 additions and 9 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= bsdstats PORTNAME= bsdstats
PORTVERSION= 3.0 PORTVERSION= 3.0
PORTREVISION= 1 PORTREVISION= 2
CATEGORIES= sysutils CATEGORIES= sysutils
DISTFILES= DISTFILES=

View file

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/Attic/300.statistics,v 1.12 2006-08-14 13:08:01 scrappy Exp $ # $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/Attic/300.statistics,v 1.13 2006-08-14 20:26:12 scrappy Exp $
# #
# If there is a global system configuration file, suck it in. # If there is a global system configuration file, suck it in.
@ -42,9 +42,9 @@ get_id_token () {
then then
IDTOKEN=$( /usr/bin/openssl rand -base64 16 ) IDTOKEN=$( /usr/bin/openssl rand -base64 16 )
idf=$( mktemp "$id_token_file.XXXXXX" ) && \ idf=$( mktemp "$id_token_file.XXXXXX" ) && \
/usr/sbin/chown root:wheel $id_token_file && \ /usr/sbin/chown root:wheel $idf && \
/bin/chmod 600 $id_token_file && \ /bin/chmod 600 $idf && \
/usr/bin/fetch -qo - \ /usr/bin/fetch -qo - \
"http://$checkin_server/scripts/getid.php?key=$IDTOKEN" | { "http://$checkin_server/scripts/getid.php?key=$IDTOKEN" | {

View file

@ -1,6 +1,6 @@
#!/bin/sh - #!/bin/sh -
# #
# $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/300.statistics.in,v 1.12 2006-08-14 13:08:01 scrappy Exp $ # $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/300.statistics.in,v 1.13 2006-08-14 20:26:12 scrappy Exp $
# #
# If there is a global system configuration file, suck it in. # If there is a global system configuration file, suck it in.
@ -42,9 +42,9 @@ get_id_token () {
then then
IDTOKEN=$( /usr/bin/openssl rand -base64 16 ) IDTOKEN=$( /usr/bin/openssl rand -base64 16 )
idf=$( mktemp "$id_token_file.XXXXXX" ) && \ idf=$( mktemp "$id_token_file.XXXXXX" ) && \
/usr/sbin/chown root:wheel $id_token_file && \ /usr/sbin/chown root:wheel $idf && \
/bin/chmod 600 $id_token_file && \ /bin/chmod 600 $idf && \
/usr/bin/fetch -qo - \ /usr/bin/fetch -qo - \
"http://$checkin_server/scripts/getid.php?key=$IDTOKEN" | { "http://$checkin_server/scripts/getid.php?key=$IDTOKEN" | {