Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Minivend4/makecat and $0.cfg / -f ?



******    message to minivend-users from Ron Mansolino <rmsolino@netaxs.com>     ******

jojo@buchonline.net said...
> 
> ******    message to minivend-users from jojo@buchonline.net     ******
> 
> Hi list,
> 
> today i install minivend 4 the first time and all works well. But....why
> i'm not able to do this command
> 
> bin/makecat <shopname>
> 
> if i have <shopname.cfg>? I love to config any shop/catalog first time
> only and store it als simple.cfg, basic.cfg or whatsoever.

because $0 is the name of the calling program (ie, makecat.cfg).
(You're thinking of $1, the 1st argument)

I just made a wrapper with my sick, twisted defaults, like so:

#!/bin/sh 
/home/minivend/bin/makecat $1           \
    --basedir=/$1                       \
    --cgibase=/opt/strong/cgi-bin       \
    --documentroot=/opt/strong/htdocs   \
    --minivendgroup=minivend            \
    --minivenduser=minivend             \
    --serverconf=/opt/strong/conf       \
    --vendroot=/home/minivend           \
    --catroot=/$1                       \
    --cgidir=/opt/strong/cgi-bin        \
    --servername=safe-to-order.com      \
    --cgiurl=/cgi-bin/$1                \
    --demotype=simple                   \
    --mailorderto=$1@safe-to-order.com  \
    --catuser=minivend                  \
    --samplehtml=/opt/strong/htdocs/$1 \
    --imagedir=/opt/strong/htdocs/$1/images     \
    --imageurl=/$1/images               \
#    --nocfg                    \
#    --nocopy                   \       
#    --norunning                \
#    --reference                \
#    --linkprogram=file         \
#    --linkmode=mode            \
#    --sampleurl=/home/minivend \
#    --relocate=dir             \
#    --noumask                  \
#    --homedir=/HOMEDIR         \

--
Ron Mansolino  RMsolino@netaxs.com  http://www.netaxs.com/~rmsolino/
Earthstation / Net Access   -  "The NOC that Rocks Around the Clock"
Philadelphia's Original Internet Provider  -  Now in our ninth year!
www.netaxs.com  www.newsread.com  www.netcondo.com  earthstation.net
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: