#!/bin/sh

set -e

# 安装目录
install_dir="/opt/deepin-ai-models"

# 执行程序名称
executable="deepin-ai-models"

if [ -f $install_dir/$executable ];then
if [ ! -f /usr/bin/$executable ];then
	# 创建软链接
	ln -s "$install_dir/$executable" "/usr/bin/$executable"
else
	echo "软链接已存在"
fi
fi

# 退出脚本
exit 0