Skip to content
Snippets Groups Projects
Commit 3ce07998 authored by Mathieu Parent's avatar Mathieu Parent
Browse files

Read smb.conf until [print$] section instead of [cdrom] to preserve...

Read smb.conf until [print$] section instead of [cdrom] to preserve locally-defined shares (Closes: #776259)
parent 27c9121e
No related branches found
No related tags found
No related merge requests found
Pipeline #4248 canceled with stage
......@@ -83,7 +83,7 @@ cp /usr/share/samba/smb.conf "$NEWFILE"
configure_smb_conf "$NEWFILE"
if [ -e "$CONFIG" ]; then
sed -e '1,/^[;#[:space:]]*\[cdrom\]/ { d }
sed -e '1,/^[;#[:space:]]*\[print\$\]/ { d }
1,/^[[:space:]]*\[/ { /^[^[]/d; /^$/d }
' "$CONFIG" >> "$NEWFILE"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment