mirror of
https://github.com/gravitl/netmaker.git
synced 2025-11-08 07:41:41 +08:00
nm-certs permission (#2308)
* nm-certs permission * single quotes error
This commit is contained in:
parent
48a2d44be4
commit
b519fb9342
1 changed files with 2 additions and 1 deletions
|
|
@ -331,7 +331,7 @@ save_config_item() { (
|
|||
# echo "VALUE $VALUE"
|
||||
if grep -q "^$NAME=" "$CONFIG_PATH"; then
|
||||
# TODO escape | in the value
|
||||
sed -i "s|$NAME=.*|$NAME='$VALUE'|" "$CONFIG_PATH"
|
||||
sed -i "s|$NAME=.*|$NAME=$VALUE|" "$CONFIG_PATH"
|
||||
else
|
||||
echo "$NAME=\"$VALUE\"" >>"$CONFIG_PATH"
|
||||
fi
|
||||
|
|
@ -747,6 +747,7 @@ install_netmaker() {
|
|||
save_config
|
||||
|
||||
# Fetch / update certs using certbot
|
||||
chmod +x "$SCRIPT_DIR"/nm-certs.sh
|
||||
"$SCRIPT_DIR"/nm-certs.sh
|
||||
|
||||
echo "Starting containers..."
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue