[PC-BSD Commits] r14067 - pbi/modules/sysutils/warden/scripts
svn at pcbsd.org
svn at pcbsd.org
Tue Nov 29 10:50:25 PST 2011
Author: kris
Date: 2011-11-29 10:50:25 -0800 (Tue, 29 Nov 2011)
New Revision: 14067
Modified:
pbi/modules/sysutils/warden/scripts/post-install.sh
Log:
Fix for the warden to save backend config to correct location
Modified: pbi/modules/sysutils/warden/scripts/post-install.sh
===================================================================
--- pbi/modules/sysutils/warden/scripts/post-install.sh 2011-11-29 18:43:28 UTC (rev 14066)
+++ pbi/modules/sysutils/warden/scripts/post-install.sh 2011-11-29 18:50:25 UTC (rev 14067)
@@ -4,6 +4,10 @@
echo "warden_enable=\"YES\"" >> /etc/rc.conf
+# Reset home in case we are installing via gksu or sudo, we want pbreg to save these
+# to the correct backend file
+HOME="/root" ; export HOME
+
pbreg set /PC-BSD/TheWarden/ProgDir "${PBI_PROGDIRPATH}/warden"
pbreg set /PC-BSD/TheWarden/WorldSrc "/usr/src"
pbreg set /PC-BSD/TheWarden/WorldDir "${PBI_PROGDIRPATH}/worlds/defaultworld"
More information about the Commits
mailing list