Fixed installation paths for file area #1

This commit is contained in:
Michiel Broek 2002-01-26 15:37:24 +00:00
parent 94ed3828f3
commit 1ef050a583
2 changed files with 4 additions and 4 deletions

View File

@ -123,15 +123,15 @@ install:
mkdir ${PREFIX}/ftp ; \
mkdir ${PREFIX}/ftp/pub ; \
mkdir ${PREFIX}/ftp/incoming ; \
mkdir ${PREFIX}/ftp/local ; \
mkdir ${PREFIX}/ftp/pub/local ; \
${CHOWN} `id -un`.`id -gn` ${PREFIX}/ftp ; \
chmod 0755 ${PREFIX}/ftp ; \
${CHOWN} ${OWNER}.${GROUP} ${PREFIX}/ftp/pub ; \
chmod 0755 ${PREFIX}/ftp/pub ; \
${CHOWN} `id -un`.`id -gn` ${PREFIX}/ftp/incoming ; \
chmod 0755 ${PREFIX}/ftp/incoming ; \
${CHOWN} ${OWNER}.${GROUP} ${PREFIX}/ftp/local ; \
chmod 0755 ${PREFIX}/ftp/local ; \
${CHOWN} ${OWNER}.${GROUP} ${PREFIX}/ftp/pub/local ; \
chmod 0755 ${PREFIX}/ftp/pub/local ; \
fi
@if [ ! -d ${PREFIX}/var/bso ] ; then \
mkdir ${PREFIX}/var/nodelist ; \

View File

@ -76,7 +76,7 @@ int CountFilearea(void)
area.FileFind = TRUE;
sprintf(area.BbsGroup, "LOCAL");
sprintf(area.NewGroup, "LOCAL");
sprintf(area.Path, "%s/local/common", CFG.ftp_base);
sprintf(area.Path, "%s/pub/local/common", CFG.ftp_base);
fwrite(&area, sizeof(area), 1, fil);
fclose(fil);
chmod(ffile, 0640);