The entry may be already present for example when reinstalling package, or calling the script multiple times (which apparently is the case during system installation).