diff --git a/install_product_id_generator.sh b/install_product_id_generator.sh index 642be19..84c3d89 100755 --- a/install_product_id_generator.sh +++ b/install_product_id_generator.sh @@ -6,7 +6,8 @@ SERVICE_NAME="bash-product-id.service" UUID_DIR="/etc/bash_product" UUID_FILE="$UUID_DIR/BASH_PRODUCT_ID" SYSTEMD_SERVICE_FILE="/etc/systemd/system/$SERVICE_NAME" -LOCAL_SCRIPT="generate_bash_product_id.sh" +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +LOCAL_SCRIPT="${SCRIPT_DIR}/generate_bash_product_id.sh" TARGET_SCRIPT="/usr/local/bin/generate_bash_product_id.sh" # 必须 root diff --git a/main b/main index de111ab..f1f07c3 100755 Binary files a/main and b/main differ