From e7f00d1f213347d3ba2fb4452ad39ab3c9576870 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 16 Oct 2009 23:57:15 -0400 Subject: Launch anyterm and unlink the configuration file. Write out the file on each invocation. --- config/anyterm/anyterm.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'config/anyterm/anyterm.inc') diff --git a/config/anyterm/anyterm.inc b/config/anyterm/anyterm.inc index 9ee43e17..8e45907e 100644 --- a/config/anyterm/anyterm.inc +++ b/config/anyterm/anyterm.inc @@ -77,7 +77,14 @@ anyterm_start () { fi /usr/bin/env \ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \ - $anytermd_command + /usr/local/bin/php -q -d auto_prepend_file=config.inc < + ENDOFF fi } @@ -104,6 +111,7 @@ EOD; fclose($fd); exec("chmod a-r /usr/local/etc/anyterm.conf ; chmod ug+r /usr/local/etc/anyterm.conf ; killall anytermd"); exec($anytermd_command); + unlink("/usr/local/etc/anyterm.conf"); } -- cgit v1.2.3