Note while shrinkdb is typically not recommended, it is recommended to take a look at index fragmentation after the fact and rebuild / reorg as necessary. I would probably just...
Now when you say just the top part of the script... do you mean just the enabling the database as the logshipping database and configuring the backup job?