Update init.sh

fixed sudo issue for writing files