[debian-lan-devel] [debian-lan] 02/03: Implement unburden-home-dir.
Andreas B. Mundt
andi at moszumanska.debian.org
Sun Dec 1 20:47:42 UTC 2013
This is an automated email from the git hooks/post-receive script.
andi pushed a commit to branch wheezy
in repository debian-lan.
commit 0c40c9298d2e6ce9e8e07a39549b17eb2e90f3a8
Author: Andreas B. Mundt <andi at debian.org>
Date: Wed Nov 27 21:48:41 2013 +0100
Implement unburden-home-dir.
(cherry picked from commit 331dd45c94f6ddb88cc3c5b6007a269f2c954462)
---
fai/config/package_config/CLIENT_A | 2 +-
fai/config/scripts/CLIENT_A/20-misc | 4 ++--
fai/config/scripts/CLIENT_A/60-unburden-home-dir | 18 ++++++++++++++++++
3 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/fai/config/package_config/CLIENT_A b/fai/config/package_config/CLIENT_A
index 5cb4804..94a2044 100644
--- a/fai/config/package_config/CLIENT_A
+++ b/fai/config/package_config/CLIENT_A
@@ -5,4 +5,4 @@ anacron
sudo-ldap
quota
unattended-upgrades
-#unburden-home-dir
+unburden-home-dir
diff --git a/fai/config/scripts/CLIENT_A/20-misc b/fai/config/scripts/CLIENT_A/20-misc
index 4b6a3f5..ae111a9 100755
--- a/fai/config/scripts/CLIENT_A/20-misc
+++ b/fai/config/scripts/CLIENT_A/20-misc
@@ -29,8 +29,8 @@ ainsl /etc/iceweasel/pref/iceweasel.js 'pref("network.negotiate-auth.trusted-uri
## Default Homepage:
ainsl /etc/iceweasel/pref/iceweasel.js 'pref("browser.startup.homepage", "data:text/plain,browser.startup.homepage=http://www.intern");'
-## Switch off caching over the network:
-ainsl /etc/iceweasel/pref/iceweasel.js 'pref("browser.cache.disk.enable", false);'
+## Switch off caching over the network (commented, managed by unburden-home-dir now):
+#ainsl /etc/iceweasel/pref/iceweasel.js 'pref("browser.cache.disk.enable", false);'
ainsl /etc/iceweasel/pref/iceweasel.js 'pref("browser.cache.offline.enable", false);'
#ainsl /etc/iceweasel/pref/iceweasel.js 'pref("browser.safebrowsing.enabled", false);'
#ainsl /etc/iceweasel/pref/iceweasel.js 'pref("browser.safebrowsing.malware.enabled", false);'
diff --git a/fai/config/scripts/CLIENT_A/60-unburden-home-dir b/fai/config/scripts/CLIENT_A/60-unburden-home-dir
new file mode 100755
index 0000000..ea9b224
--- /dev/null
+++ b/fai/config/scripts/CLIENT_A/60-unburden-home-dir
@@ -0,0 +1,18 @@
+#!/usr/sbin/cfagent -f
+
+control:
+ any::
+ actionsequence = ( editfiles )
+ EditFileSize = ( 30000 )
+
+editfiles:
+ any::
+ ## Enable all:
+ { ${target}/etc/unburden-home-dir.list
+ SetCommentStart "#"
+ UnCommentLinesMatching "#m . .*"
+ }
+ { ${target}/etc/default/unburden-home-dir
+ SetCommentStart "#"
+ UnCommentLinesMatching "#UNBURDEN_HOME=true"
+ }
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/debian-lan.git
More information about the debian-lan-devel
mailing list