ファイル情報

Rev. 4ba68e3ad501c323b546e9cc524ea0d4f1ca7280
サイズ 1,185 バイト
日時 2019-09-09 13:49:12
作者 kgsoft
ログメッセージ

BugTrack-wiki/353 : 番号付きリスト項目リストの組合せが正しく表示されない

内容

#!/bin/sh

PROGNAME=`basename $0`

case "$1" in
-h|--help)
  echo "usage: $PROGNAME [fswiki_home]"
  exit
  ;;
-v|--version)
  echo "$PROGNAME version 0.01"
  exit
  ;;
esac

echo "# fswiki setup (for 3.5.8)..."
echo "prepare..."

if test -z "$FSWIKI_HOME";
then
  FSWIKI_HOME=.
fi
if test -n "$1";
then
  FSWIKI_HOME="$1"
fi

echo "  FSWIKI_HOME=$FSWIKI_HOME"
PERM_DIR=775
PERM_FILE=664
PERM_EXE=755

echo "  check $FSWIKI_HOME/wiki.cgi..."
if test -e "$FSWIKI_HOME/wiki.cgi";
then
  echo "    ok"
else
  echo "  $FSWIKI_HOME/wiki.cgi not exists!!"
  exit 1
fi

echo "do..."

chmod $PERM_EXE $FSWIKI_HOME/wiki.cgi || exit 1
for dir in backup attach pdf log data config;
do
  echo "  check $FSWIKI_HOME/$dir..."
  test -d $FSWIKI_HOME/$dir || mkdir $FSWIKI_HOME/$dir || exit 1
  find "$FSWIKI_HOME/$dir" -type d -exec chmod $PERM_DIR {} \;
  find "$FSWIKI_HOME/$dir" -type f -exec chmod $PERM_FILE {} \;
done

echo "  check $FSWIKI_HOME/.htaccess..."
if test -e "$FSWIKI_HOME/.htaccess";
then
  echo "    already exists."
else
  cat > "$FSWIKI_HOME/.htaccess" << HTACCESS
<FilesMatch "\.(pm|dat|wiki|log)$">
  deny from all
</FilesMatch>
HTACCESS
  echo "    create."
fi

echo "done"

旧リポジトリブラウザで表示