summaryrefslogtreecommitdiff
path: root/yarns.webapp/yarn.sh
diff options
context:
space:
mode:
Diffstat (limited to 'yarns.webapp/yarn.sh')
-rw-r--r--yarns.webapp/yarn.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/yarns.webapp/yarn.sh b/yarns.webapp/yarn.sh
index 58af354..a5f22b5 100644
--- a/yarns.webapp/yarn.sh
+++ b/yarns.webapp/yarn.sh
@@ -30,3 +30,15 @@ kill_daemon_using_pid_file()
echo "Error killing daemon running as pid $pid"
fi
}
+
+
+# Add a configuration item to a cliapp-style configuration file.
+
+add_to_config_file()
+{
+ if [ ! -e "$1" ]
+ then
+ printf '[config]\n' > "$1"
+ fi
+ printf '%s = %s\n' "$2" "$3" >> "$1"
+}