**** BEGIN LOGGING AT Mon Aug 13 03:00:00 2018 Aug 13 15:42:42 Hello there. Any EasyDeb user here? **** BEGIN LOGGING AT Mon Aug 13 17:38:01 2018 Aug 13 18:45:57 I have to make the same changes to every apache2 virtual host on many servers. The change is pretty simple, could be scripted but I fear that scripting it will take longer than doing it all manually. Anyone want to try to help me script it? Aug 13 18:46:38 are you asking to do your job for you? Aug 13 18:48:34 No, I could do it myself but it may be faster if someone with recent experience with the stuff involved can help me. Aug 13 18:49:57 Part of it can be scripted with sed but I usually use sed only for the s(ubstitute) command so I do not know off hand how to do this job with sed. Aug 13 18:50:14 just use php/perl/python Aug 13 18:50:42 or whichever lang you are best with Aug 13 18:51:52 I think the whole job can be done with bash, sed, and some basic commands such as mv, rmdir. Aug 13 18:53:34 Actually, if I know how to interactively edit the vhost configuration file in vim, I guess I can simply put the ex commands I use in a script to be run by ex? Aug 13 19:07:27 The question is, will you need to do something similar in the future. If so it is worth the effort to script it. Aug 13 19:07:56 Use the best tool for the job. Aug 13 19:22:15 sixwheeledbeast: Basically the change is to fix my mistake from years ago that prevents the vhost log files from being automatically rotated with the default OS configuration. For every vhost on every server, I need to move the log files from /var/log/apache2/${vhost_name}/{access,error}.log to /var/log/apache2/${vhost_name}_{access,error}.log , edit the log lines of the vhost configuration file, remove the empty /var/log/apache2/${vhost_name}/ directory, Aug 13 19:22:16 and reload the apache2 configuration. Aug 13 19:25:28 Er, actually currently the vhost log files are in /var/log/apache2/vhosts/${vhost_name}/ but they should be in /var/log/apache2/ . Aug 13 19:26:39 It is tedious but if I do only one or a few servers per day then the tedium will be less. Aug 13 19:28:26 I would start with one site, manually do the fix making notes/writing a bash script of your actions, then run it on another site. **** ENDING LOGGING AT Tue Aug 14 03:00:01 2018