| 
				
			 | 
			
			
				@@ -8400,6 +8400,20 @@ function install_rss_reader { 
			 | 
		
	
		
			
			| 
				8400
			 | 
			
				8400
			 | 
			
			
				         echo "RSS reader domain:${RSS_READER_DOMAIN_NAME}" >> $COMPLETION_FILE 
			 | 
		
	
		
			
			| 
				8401
			 | 
			
				8401
			 | 
			
			
				     fi 
			 | 
		
	
		
			
			| 
				8402
			 | 
			
				8402
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				
			 | 
			
				8403
			 | 
			
			
				+    # daemon to update feeds 
			 | 
		
	
		
			
			| 
				
			 | 
			
				8404
			 | 
			
			
				+    echo '[Unit]' > /etc/systemd/system/ttrss.service 
			 | 
		
	
		
			
			| 
				
			 | 
			
				8405
			 | 
			
			
				+    echo 'Description=ttrss_backend' >> /etc/systemd/system/ttrss.service 
			 | 
		
	
		
			
			| 
				
			 | 
			
				8406
			 | 
			
			
				+    echo 'After=network.target mysql.service' >> /etc/systemd/system/ttrss.service 
			 | 
		
	
		
			
			| 
				
			 | 
			
				8407
			 | 
			
			
				+    echo '' >> /etc/systemd/system/ttrss.service 
			 | 
		
	
		
			
			| 
				
			 | 
			
				8408
			 | 
			
			
				+    echo '[Service]' >> /etc/systemd/system/ttrss.service 
			 | 
		
	
		
			
			| 
				
			 | 
			
				8409
			 | 
			
			
				+    echo 'User=www-data' >> /etc/systemd/system/ttrss.service 
			 | 
		
	
		
			
			| 
				
			 | 
			
				8410
			 | 
			
			
				+    echo "ExecStart=$RSS_READER_PATH/update_daemon2.php" >> /etc/systemd/system/ttrss.service 
			 | 
		
	
		
			
			| 
				
			 | 
			
				8411
			 | 
			
			
				+    echo '' >> /etc/systemd/system/ttrss.service 
			 | 
		
	
		
			
			| 
				
			 | 
			
				8412
			 | 
			
			
				+    echo '[Install]' >> /etc/systemd/system/ttrss.service 
			 | 
		
	
		
			
			| 
				
			 | 
			
				8413
			 | 
			
			
				+    echo 'WantedBy=multi-user.target' >> /etc/systemd/system/ttrss.service 
			 | 
		
	
		
			
			| 
				
			 | 
			
				8414
			 | 
			
			
				+    systemctl enable ttrss 
			 | 
		
	
		
			
			| 
				
			 | 
			
				8415
			 | 
			
			
				+    systemctl start ttrss 
			 | 
		
	
		
			
			| 
				
			 | 
			
				8416
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				8403
			 | 
			
				8417
			 | 
			
			
				     # some post-install instructions for the user 
			 | 
		
	
		
			
			| 
				8404
			 | 
			
				8418
			 | 
			
			
				     if ! grep -q $"RSS Reader" /home/$MY_USERNAME/README; then 
			 | 
		
	
		
			
			| 
				8405
			 | 
			
				8419
			 | 
			
			
				         echo '' >> /home/$MY_USERNAME/README 
			 |