diff --git a/scripts/install b/scripts/install
index f1872a7..7568d97 100644
--- a/scripts/install
+++ b/scripts/install
@@ -61,16 +61,17 @@ find $final_path -type d | grep "tests$" | xargs sudo rm -rf
sudo rm -rf $final_path/ghost/node_modules/sqlite3/build
sudo rm -rf $final_path/tmp
-echo "Patching sources to remove calls to googleapi..."
+echo "Patching sources to remove calls to googleapis..."
# patches to core
-sed -i '/googleapis/c\ ' $final_path/ghost/core/server/views/user-error.hbs
-sed -i '/googleapis/c\ ' $final_path/ghost/core/server/views/default.hbs
-cp ../patches/core/fonts.css $final_path/ghost/core/client/assets/css
-cp ../patches/core/*.woff $final_path/ghost/core/client/assets/fonts
+sudo sed -i '/googleapis/c\ ' $final_path/ghost/core/server/views/user-error.hbs
+sudo sed -i '/googleapis/c\ ' $final_path/ghost/core/server/views/default.hbs
+sudo cp ../patches/core/fonts.css $final_path/ghost/core/client/assets/css
+sudo cp ../patches/core/*.woff $final_path/ghost/core/client/assets/fonts
# patches to casper theme
-sed -i '/googleapis/c\ ' $final_path/ghost/content/themes/casper/default.hbs
-cp ../patches/theme/fonts.css $final_path/ghost/content/themes/casper/assets/css
-cp ../patches/theme/*.woff $final_path/ghost/content/themes/casper/assets/fonts
+sudo sed -i '/googleapis/c\ ' $final_path/ghost/content/themes/casper/default.hbs
+sudo cp ../patches/theme/fonts.css $final_path/ghost/content/themes/casper/assets/css
+sudo cp ../patches/theme/*.woff $final_path/ghost/content/themes/casper/assets/fonts
+sudo chown -R ghostblog:ghostblog $final_path/ghost
echo "Setting up database..."
db_name=ghostblog