diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2025-09-15 18:50:32 +0200 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2025-09-15 18:50:32 +0200 |
commit | c3eee8e333866d92e5fd94ae83cef618758c11bb (patch) | |
tree | 234a06fd90bd61a6668490a0cbf8870e6c674b81 /scripts/i-data-stats.sh |
FICS RPBLC v1.4.61.4.6
Diffstat (limited to 'scripts/i-data-stats.sh')
-rwxr-xr-x | scripts/i-data-stats.sh | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/scripts/i-data-stats.sh b/scripts/i-data-stats.sh new file mode 100755 index 0000000..be49516 --- /dev/null +++ b/scripts/i-data-stats.sh @@ -0,0 +1,35 @@ +#!/bin/sh +# SPDX-FileCopyrightText: 2023 Markus Uhlin <maxxe@rpblc.net> +# SPDX-License-Identifier: ISC + +i_data_stats () { + local _path _files + + _path="${1}" + _files=" +logons.log +newratingsV2_data +rank.blitz +rank.lightning +rank.std +rank.wild +" + + echo "installing..." + + for file in ${_files}; do + printf "creating '%s': " "${_path}/${file}" + if [ -r "${_path}/${file}" ]; then + echo "already exists (good)" + else + cat /dev/null > "${_path}/${file}" + if [ $? -eq 0 ]; then + echo "ok" + else + echo "error" + fi + fi + done +} + +i_data_stats "${1}" |