From ce8b4175ac8be3495fe0e75d3d86cadb3b82dd25 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Tue, 20 Mar 2018 17:14:23 -0400 Subject: [PATCH] getting samba archive bit right now is working to fix the samba config by adding: map archive = no --- scripts/site_avenger/revamp_cakelampvm.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/site_avenger/revamp_cakelampvm.sh b/scripts/site_avenger/revamp_cakelampvm.sh index 96daae90..8dd187f9 100644 --- a/scripts/site_avenger/revamp_cakelampvm.sh +++ b/scripts/site_avenger/revamp_cakelampvm.sh @@ -255,7 +255,9 @@ echo successfully patched the samba configuration to enable writes on user home grep -q "map archive" /etc/samba/smb.conf # if the phrase wasn't found, we need to add it. if [ $? -ne 0 ]; then - sed -i "/\[global\]/[global]\n\nmap archive = no" /etc/samba/smb.conf + sed -i "s/\[global\]/\[global\]\n\nmap archive = no/" /etc/samba/smb.conf + test_or_die "patching samba configuration to turn off archive bit mapping feature" + echo Successfully fixed Samba to not use the archive bit mapping feature. fi # sweet, looks like that worked... -- 2.34.1