diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2014-08-08 02:23:03 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2014-08-08 02:23:03 +0800 |
commit | 8af41f7e34bdc8dc6ed5a431ddc21be05c0970a3 (patch) | |
tree | 062fe97257b3c4d304e2068be3d8db19de6d3645 /pttbbs/upgrade/r5149_waterban.sh | |
parent | e355c75add79e464b3c1a76448af6b18b7c8dbdf (diff) | |
download | pttbbs-8af41f7e34bdc8dc6ed5a431ddc21be05c0970a3.tar pttbbs-8af41f7e34bdc8dc6ed5a431ddc21be05c0970a3.tar.gz pttbbs-8af41f7e34bdc8dc6ed5a431ddc21be05c0970a3.tar.bz2 pttbbs-8af41f7e34bdc8dc6ed5a431ddc21be05c0970a3.tar.lz pttbbs-8af41f7e34bdc8dc6ed5a431ddc21be05c0970a3.tar.xz pttbbs-8af41f7e34bdc8dc6ed5a431ddc21be05c0970a3.tar.zst pttbbs-8af41f7e34bdc8dc6ed5a431ddc21be05c0970a3.zip |
Remove innd. We don't want to support it anymore.pttbbs.dbx
git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.dbx@6045 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'pttbbs/upgrade/r5149_waterban.sh')
-rwxr-xr-x | pttbbs/upgrade/r5149_waterban.sh | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/pttbbs/upgrade/r5149_waterban.sh b/pttbbs/upgrade/r5149_waterban.sh deleted file mode 100755 index fc98a9a6..00000000 --- a/pttbbs/upgrade/r5149_waterban.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# This script converts old 'water' to new 'banned' format. -# Before running, create a file with the stamp you want in -# r5149_waterban.data - -SRC_SAMPLE=r5149_waterban.data -if [ ! -f "$SRC_SAMPLE" ]; then - echo "Please touch your timestamp in $SRC_SAMPLE." - exit 1 -fi - -i=0 -num_boards=$(~/bin/showboard ~/.BRD | wc -l) -boards=$(~/bin/showboard ~/.BRD | sed 's/^ *[0-9][0-9]* //;s/ .*//') -for X in $boards; do - i=$((i+1)) - echo -n "\rProcessing: $i/$num_boards" >&2 - board_path=$HOME/boards/$(echo $X | cut -b 1)/$X - #echo "checking: $board_path/water" - if [ ! -s "$board_path/water" ]; then - continue - fi - water_fn="$board_path/water" - echo "Processing board: $X" - uids=$(awk '{print $1}' "$water_fn") - for uid in $uids; do - uid_folder="$HOME/home/$(echo $uid | cut -b 1)/$uid" - if [ -d "$uid_folder" ]; then - echo "found uid folder: $uid_folder" - else - echo "invalid user: $uid" - continue - fi - mkdir -p $uid_folder/banned - cp $SRC_SAMPLE $uid_folder/banned/b_$X - done -done |