-
Notifications
You must be signed in to change notification settings - Fork 696
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12054 from vojtapolasek/fix_template_systemd_dropin
align template systemd_dropin_configuration
- Loading branch information
Showing
17 changed files
with
143 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
shared/templates/systemd_dropin_configuration/tests/correct_dir.pass.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
#!/bin/bash | ||
SECTION="{{{ SECTION }}}" | ||
PARAM="{{{ PARAM }}}" | ||
VALUE="{{{ VALUE }}}" | ||
DROPIN_DIR="{{{ DROPIN_DIR }}}" | ||
[ -d $DROPIN_DIR ] || mkdir -p $DROPIN_DIR | ||
echo "$PARAM=$VALUE" >> "$DROPIN_DIR/ssg.conf" | ||
{{% if NO_QUOTES %}} | ||
echo -e "[$SECTION]\n$PARAM=$VALUE" > "$DROPIN_DIR/ssg.conf" | ||
{{% else %}} | ||
echo -e "[$SECTION]\n$PARAM=\"$VALUE\"" > "$DROPIN_DIR/ssg.conf" | ||
{{% endif %}} |
7 changes: 6 additions & 1 deletion
7
shared/templates/systemd_dropin_configuration/tests/correct_master.pass.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
#!/bin/bash | ||
SECTION="{{{ SECTION }}}" | ||
PARAM="{{{ PARAM }}}" | ||
VALUE="{{{ VALUE }}}" | ||
MASTER_CFG_FILE="{{{ MASTER_CFG_FILE }}}" | ||
echo "$PARAM=$VALUE" >> "$MASTER_CFG_FILE" | ||
{{% if NO_QUOTES %}} | ||
echo -e "[$SECTION]\n$PARAM=$VALUE" > "$MASTER_CFG_FILE" | ||
{{% else %}} | ||
echo -e "[$SECTION]\n$PARAM=\"$VALUE\"" > "$MASTER_CFG_FILE" | ||
{{% endif %}} |
13 changes: 10 additions & 3 deletions
13
shared/templates/systemd_dropin_configuration/tests/multiple_vals.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
#!/bin/bash | ||
SECTION="{{{ SECTION }}}" | ||
PARAM="{{{ PARAM }}}" | ||
VALUE="{{{ VALUE }}}" | ||
DROPIN_DIR="{{{ DROPIN_DIR }}}" | ||
MASTER_CFG_FILE="{{{ MASTER_CFG_FILE }}}" | ||
[ -d $DROPIN_DIR ] || mkdir -p $DROPIN_DIR | ||
echo "$PARAM=$VALUE" >> "$DROPIN_DIR/ssg.conf" | ||
echo "$PARAM=badval" >> "$DROPIN_DIR/gss.conf" | ||
echo "$PARAM=foobarzoo" >> "$MASTER_CFG_FILE" | ||
{{% if NO_QUOTES %}} | ||
echo -e "[$SECTION]\n$PARAM=$VALUE" > "$DROPIN_DIR/ssg.conf" | ||
echo -e "[$SECTION]\n$PARAM=badval" > "$DROPIN_DIR/gss.conf" | ||
echo -e "[$SECTION]\n$PARAM=foobarzoo" > "$MASTER_CFG_FILE" | ||
{{% else %}} | ||
echo -e "[$SECTION]\n$PARAM=\"$VALUE\"" > "$DROPIN_DIR/ssg.conf" | ||
echo -e "[$SECTION]\n$PARAM=\"badval\"" > "$DROPIN_DIR/gss.conf" | ||
echo -e "[$SECTION]\n$PARAM=\"foobarzoo\"" > "$MASTER_CFG_FILE" | ||
{{% endif %}} |
7 changes: 6 additions & 1 deletion
7
shared/templates/systemd_dropin_configuration/tests/wrong_dir.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
#!/bin/bash | ||
SECTION="{{{ SECTION }}}" | ||
PARAM="{{{ PARAM }}}" | ||
DROPIN_DIR="{{{ DROPIN_DIR }}}" | ||
[ -d $DROPIN_DIR ] || mkdir -p $DROPIN_DIR | ||
echo "$PARAM=badval" >> "$DROPIN_DIR/ssg.conf" | ||
{{% if NO_QUOTES %}} | ||
echo -e "[$SECTION]\n$PARAM=badval" > "$DROPIN_DIR/ssg.conf" | ||
{{% else %}} | ||
echo -e "[$SECTION]\n$PARAM=\"badval\"" > "$DROPIN_DIR/ssg.conf" | ||
{{% endif %}} |
8 changes: 6 additions & 2 deletions
8
shared/templates/systemd_dropin_configuration/tests/wrong_master.fail.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
#!/bin/bash | ||
SECTION="{{{ SECTION }}}" | ||
PARAM="{{{ PARAM }}}" | ||
VALUE="{{{ VALUE }}}" | ||
MASTER_CFG_FILE="{{{ MASTER_CFG_FILE }}}" | ||
echo "$PARAM=badval" >> "$MASTER_CFG_FILE" | ||
{{% if NO_QUOTES %}} | ||
echo -e "[$SECTION]\n$PARAM=badval" > "$MASTER_CFG_FILE" | ||
{{% else %}} | ||
echo -e "[$SECTION]\n$PARAM=\"badval\"" > "$MASTER_CFG_FILE" | ||
{{% endif %}} |
Oops, something went wrong.