fastdfs/0001-move_scripts_to_data_dir.patch
He Rengui a45e496ab6 移动脚本到share/fastfds/bin
Signed-off-by: He Rengui <herengui@uniontech.com>
2021-04-02 15:11:03 +08:00

33 lines
945 B
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

From 0e4fbdbdbfbaccec47187e39632398ce32399be9 Mon Sep 17 00:00:00 2001
From: herengui <herengui@uniontech.com>
Date: Fri, 2 Apr 2021 15:02:37 +0800
Subject: [PATCH] 修改make.sh中复制scripts的逻辑脚本文件放置到/usr/share/fastdfs/bin目录中
直接放到/usr/bin目录中文件名不能自解释脚本功能。
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
make.sh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/make.sh b/make.sh
index 69bb072..a1c1304 100755
--- a/make.sh
+++ b/make.sh
@@ -156,8 +156,9 @@ cd ..
if [ "$1" = "install" ]; then
cd ..
- cp -f restart.sh $TARGET_PREFIX/bin
- cp -f stop.sh $TARGET_PREFIX/bin
+ SHARE_BIN_DIR=$TARGET_PREFIX/share/fastdfs/bin
+ mkdir -p $SHARE_BIN_DIR
+ cp -f restart.sh stop.sh $SHARE_BIN_DIR
if [ "$uname" = "Linux" ]; then
if [ "$WITH_LINUX_SERVICE" = "1" ]; then
--
2.27.0