I did not dare to add this line to my existing postupgrade.sh so far and just wanted to share above step and ask for experiences.
Second an similar to above, modify a line in /etc/sarg/sarg.conf.
This config already contains the line
# TAG: resolve_ip yes/no
# Convert ip address to dns name
# sarg -n
resolve_ip no
The last line should be replace by resolve_ip dns
A simply echo wonât do the job here, so is there a command that is capable of modifying of text files?
-i: Perl modifies the input file(s) specified by the command, rather than simply printing the output to the console. It changes directly to the file(s) being processed.
-p: loop over each line of the input file(s) and automatically print the line after applying the specified code, eliminating the need for writing explicit loops to iterate over the input.
-e: execute the code, in this case âs/resolve_ip no/resolve_ip dns/gâ, which is a regular expression-based substitution pattern (like in the sed solution). It searches for the string âresolve_ip noâ and replaces it with âresolve_ip dnsâ globally (g) in each line (as opposed to only the first occurrence, when g is ommited).
Hi, in my system there is only a directory named /etc/httpd/conf - so maybe we should better add one line into /etc/httpd/conf/mime.types
application/x-ns-proxy-autoconfig dat pac