Remove extra white lines
Add hook for nginx lock and unlock