Not an IT guy but..
Wouldn't it have been safer to make a small script that did this modification offline first, then run this? Also useful for future modifications. The only time you should be directly working on a live system (any sort, be it IT or something more hammer-able) is if there is absolutely no other way to prepare the work beforehand.