Update maza

This commit is contained in:
Andros Fenollosa 2020-01-05 09:36:45 +01:00 committed by GitHub
parent cebe8b5d18
commit f7348e4a6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

24
maza
View File

@ -64,27 +64,15 @@ update() {
sed -i.bak 's/127.0.0.1 /address=\//g' "$CONFIG/$LIST_DNSMASQ"
sed -i.bak 's/$/\/127.0.0.1/g' "$CONFIG/$LIST_DNSMASQ"
## Add start tag DNS list in first line
sed -i.bak "1i\\
$AUTHOR
" "$CONFIG/$LIST"
sed -i.bak "1i\\
$PROJECT
" "$CONFIG/$LIST"
sed -i.bak "1i\\
$START_TAG
" "$CONFIG/$LIST"
sed -i.bak "1i\\$AUTHOR" "$CONFIG/$LIST"
sed -i.bak "1i\\$PROJECT" "$CONFIG/$LIST"
sed -i.bak "1i\\$START_TAG" "$CONFIG/$LIST"
## Add end tag DNS list in first line
echo $END_TAG >> "$CONFIG/$LIST"
## Add start tag DNS dnsmasq in first line
sed -i.bak "1i\\
$AUTHOR
" "$CONFIG/$LIST_DNSMASQ"
sed -i.bak "1i\\
$PROJECT
" "$CONFIG/$LIST_DNSMASQ"
sed -i.bak "1i\\
$START_TAG
" "$CONFIG/$LIST_DNSMASQ"
sed -i.bak "1i\\$AUTHOR" "$CONFIG/$LIST_DNSMASQ"
sed -i.bak "1i\\$PROJECT" "$CONFIG/$LIST_DNSMASQ"
sed -i.bak "1i\\$START_TAG" "$CONFIG/$LIST_DNSMASQ"
## Add end tag DNS DNSMASQ in first line
echo $END_TAG >> "$CONFIG/$LIST_DNSMASQ"
# Remove temp file