| 
				
			 | 
			
			
				@@ -186,10 +186,13 @@ function postactiv_running_script { 
			 | 
		
	
		
			
			| 
				186
			 | 
			
				186
			 | 
			
			
				     echo 'fi' >> /etc/cron.hourly/postactiv-daemons 
			 | 
		
	
		
			
			| 
				187
			 | 
			
				187
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				188
			 | 
			
				188
			 | 
			
			
				     echo "cd /var/www/${POSTACTIV_DOMAIN_NAME}/htdocs" >> /etc/cron.hourly/postactiv-daemons 
			 | 
		
	
		
			
			| 
				189
			 | 
			
				
			 | 
			
			
				-    echo 'php scripts/delete_orphan_files.php' >> /etc/cron.hourly/postactiv-daemons 
			 | 
		
	
		
			
			| 
				190
			 | 
			
				
			 | 
			
			
				-    echo 'php scripts/clean_thumbnails.php -y' >> /etc/cron.hourly/postactiv-daemons 
			 | 
		
	
		
			
			| 
				191
			 | 
			
				
			 | 
			
			
				-    echo '# php scripts/cleanup_file_table.php' >> /etc/cron.hourly/postactiv-daemons 
			 | 
		
	
		
			
			| 
				192
			 | 
			
				
			 | 
			
			
				-    echo '# php scripts/upgrade.php' >> /etc/cron.hourly/postactiv-daemons 
			 | 
		
	
		
			
			| 
				
			 | 
			
				189
			 | 
			
			
				+    echo "if ! grep -q \"//define('POSTACTIV',true);\" scripts/commandline.inc; then" >> /etc/cron.hourly/postactiv-daemons 
			 | 
		
	
		
			
			| 
				
			 | 
			
				190
			 | 
			
			
				+    echo "  sed -i \"s|define('POSTACTIV',true);|//define('POSTACTIV',true);|g\" scripts/commandline.inc" >> /etc/cron.hourly/postactiv-daemons 
			 | 
		
	
		
			
			| 
				
			 | 
			
				191
			 | 
			
			
				+    echo 'fi' >> /etc/cron.hourly/postactiv-daemons 
			 | 
		
	
		
			
			| 
				
			 | 
			
				192
			 | 
			
			
				+    echo 'php scripts/delete_orphan_files.php > /dev/null' >> /etc/cron.hourly/postactiv-daemons 
			 | 
		
	
		
			
			| 
				
			 | 
			
				193
			 | 
			
			
				+    echo 'php scripts/clean_thumbnails.php -y > /dev/null' >> /etc/cron.hourly/postactiv-daemons 
			 | 
		
	
		
			
			| 
				
			 | 
			
				194
			 | 
			
			
				+    echo '# php scripts/cleanup_file_table.php > /dev/null' >> /etc/cron.hourly/postactiv-daemons 
			 | 
		
	
		
			
			| 
				
			 | 
			
				195
			 | 
			
			
				+    echo '# php scripts/upgrade.php > /dev/null' >> /etc/cron.hourly/postactiv-daemons 
			 | 
		
	
		
			
			| 
				193
			 | 
			
				196
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				194
			 | 
			
				197
			 | 
			
			
				     chmod +x /etc/cron.hourly/postactiv-daemons 
			 | 
		
	
		
			
			| 
				195
			 | 
			
				198
			 | 
			
			
				 } 
			 |