diff --git a/lib/base.php b/lib/base.php
index ba378653f475615c7112bb51f0069f3488b5edd0..5118f6471349bc49cdf5ea76e4ed6d379b0a49d7 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -435,7 +435,7 @@ class OC{
 		}
 
 		//update path to lib base
-		file_put_contents(OC::$APPSROOT . '/apps/inc.php', '<?php require_once(\'' . OC::$SERVERROOT . '/lib/base.php' . '\'); ?>');
+		@file_put_contents(OC::$APPSROOT . '/apps/inc.php', '<?php require_once(\'' . OC::$SERVERROOT . '/lib/base.php' . '\'); ?>');
 	}
 }