| 
				
			 | 
			
			
				@@ -211,6 +211,13 @@ function install_pleroma { 
			 | 
		
	
		
			
			| 
				211
			 | 
			
				211
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				212
			 | 
			
				212
			 | 
			
			
				     nginx_site=/etc/nginx/sites-available/${pleroma_domain} 
			 | 
		
	
		
			
			| 
				213
			 | 
			
				213
			 | 
			
			
				     sed -i 's|index index.php;|index index.html;|g' $nginx_site 
			 | 
		
	
		
			
			| 
				
			 | 
			
				214
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				215
			 | 
			
			
				+    if [ -f /var/www/${pleroma_domain}/htdocs/index.php ]; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				216
			 | 
			
			
				+        mv /var/www/${pleroma_domain}/htdocs/index.php /var/www/${pleroma_domain}/htdocs/index_qvitter.php 
			 | 
		
	
		
			
			| 
				
			 | 
			
				217
			 | 
			
			
				+    fi 
			 | 
		
	
		
			
			| 
				
			 | 
			
				218
			 | 
			
			
				+    sed -i 's|index.php|index_qvitter.php|g' $nginx_site 
			 | 
		
	
		
			
			| 
				
			 | 
			
				219
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				220
			 | 
			
			
				+    chown -R www-data:www-data /var/www/${pleroma_domain}/htdocs 
			 | 
		
	
		
			
			| 
				214
			 | 
			
				221
			 | 
			
			
				 } 
			 | 
		
	
		
			
			| 
				215
			 | 
			
				222
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				216
			 | 
			
				223
			 | 
			
			
				 function upgrade_pleroma { 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -229,6 +236,11 @@ function upgrade_pleroma { 
			 | 
		
	
		
			
			| 
				229
			 | 
			
				236
			 | 
			
			
				         fi 
			 | 
		
	
		
			
			| 
				230
			 | 
			
				237
			 | 
			
			
				         cp -r $INSTALL_DIR/pleroma/dist/* /var/www/${domain_name}/htdocs/ 
			 | 
		
	
		
			
			| 
				231
			 | 
			
				238
			 | 
			
			
				         pleroma_set_background_image_from_url "$domain_name" "$background_url" "$title" 
			 | 
		
	
		
			
			| 
				
			 | 
			
				239
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				240
			 | 
			
			
				+        if [ -f /var/www/${domain_name}/htdocs/index.php ]; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				241
			 | 
			
			
				+            mv /var/www/${domain_name}/htdocs/index.php /var/www/${domain_name}/htdocs/index_qvitter.php 
			 | 
		
	
		
			
			| 
				
			 | 
			
				242
			 | 
			
			
				+        fi 
			 | 
		
	
		
			
			| 
				
			 | 
			
				243
			 | 
			
			
				+        chown -R www-data:www-data /var/www/${domain_name}/htdocs 
			 | 
		
	
		
			
			| 
				232
			 | 
			
				244
			 | 
			
			
				     else 
			 | 
		
	
		
			
			| 
				233
			 | 
			
				245
			 | 
			
			
				         install_pleroma "${app_name}" "${domain_name}" "${background_url}" "${title}" 
			 | 
		
	
		
			
			| 
				234
			 | 
			
				246
			 | 
			
			
				     fi 
			 |