5 FREESIDE_CONF=%%%FREESIDE_CONF%%%
6 FREESIDE_CACHE=%%%FREESIDE_CACHE%%%
7 FREESIDE_EXPORT=%%%FREESIDE_EXPORT%%%
9 #without this, [a-z]* matches CVS/, the copy doesn't return a sucessful error
10 # status, and the rest of the commands aren't run
15 mkdir $FREESIDE_CONF/conf.DBI:Pg:dbname=$domain && \
17 chown freeside $FREESIDE_CONF/conf.DBI:Pg:dbname=$domain && \
19 cp /home/ivan/freeside/conf/[a-z]* $FREESIDE_CONF/conf.DBI:Pg:dbname=$domain && \
21 touch $FREESIDE_CONF/conf.DBI:Pg:dbname=$domain/secrets && \
23 chown freeside $FREESIDE_CONF/conf.DBI:Pg:dbname=$domain/secrets && \
25 chmod 600 $FREESIDE_CONF/conf.DBI:Pg:dbname=$domain/secrets && \
27 echo -e "DBI:Pg:dbname=$domain\nfreeside\n" >$FREESIDE_CONF/conf.DBI:Pg:dbname=$domain/secrets && \
29 mkdir $FREESIDE_CACHE/counters.DBI:Pg:dbname=$domain && \
30 mkdir $FREESIDE_CACHE/cache.DBI:Pg:dbname=$domain && \
31 mkdir $FREESIDE_EXPORT/export.DBI:Pg:dbname=$domain