Skip to content

Commit

Permalink
fix: sed error
Browse files Browse the repository at this point in the history
  • Loading branch information
1995chen committed May 11, 2024
1 parent 0625a37 commit d0d7dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/dnf_data/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ if [ -z "$PUBLIC_IP" ] && [ -n "$NB_SETUP_KEY" ] && [ -n "$NB_MANAGEMENT_URL" ];
echo "install new netbird service"
cp /home/template/init/netbird /etc/init.d/
# 替换变量
find /etc/init.d -type f -name "netbird" -print0 | xargs -0 sed -i "s/NB_MANAGEMENT_URL/$NB_MANAGEMENT_URL/g"
sed -i "s#NB_MANAGEMENT_URL#$NB_MANAGEMENT_URL#g" /etc/init.d/netbird
echo "starting netbird service[$NB_MANAGEMENT_URL] use setup_key: $NB_SETUP_KEY"
service netbird start
NB_FOREGROUND_MODE=false netbird up
Expand Down

0 comments on commit d0d7dbc

Please sign in to comment.