You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
632 B
25 lines
632 B
#!/bin/bash
|
|
# 机构名称匹配工具安装脚本
|
|
|
|
echo "正在安装机构名称匹配工具..."
|
|
|
|
# 创建安装目录
|
|
INSTALL_DIR="/usr/local/bin/institution_matcher"
|
|
sudo mkdir -p $INSTALL_DIR
|
|
|
|
# 复制可执行文件
|
|
sudo cp dist/institution_matcher $INSTALL_DIR/
|
|
sudo chmod +x $INSTALL_DIR/institution_matcher
|
|
|
|
# 创建配置文件目录
|
|
CONFIG_DIR="/etc/institution_matcher"
|
|
sudo mkdir -p $CONFIG_DIR
|
|
|
|
# 复制配置文件
|
|
sudo cp config.yaml $CONFIG_DIR/
|
|
|
|
# 创建软链接
|
|
sudo ln -sf $INSTALL_DIR/institution_matcher /usr/local/bin/institution_matcher
|
|
|
|
echo "安装完成!"
|
|
echo "使用方法: institution_matcher --help"
|
|
|