mirror of
				https://github.com/searxng/searxng.git
				synced 2025-11-02 18:47:05 -05:00 
			
		
		
		
	Merge pull request #552 from return42/fix-searx.sh
[fix] searx.sh update: replace git pull by a hard reset
This commit is contained in:
		
						commit
						cfb5eda4d1
					
				@ -402,11 +402,11 @@ install_check() {
 | 
			
		||||
update_searx() {
 | 
			
		||||
    rst_title "Update SearXNG instance"
 | 
			
		||||
 | 
			
		||||
    echo
 | 
			
		||||
    rst_para "fetch from $GIT_URL and reset to origin/$GIT_BRANCH"
 | 
			
		||||
    tee_stderr 0.3 <<EOF | sudo -H -u "${SERVICE_USER}" -i 2>&1 |  prefix_stdout "$_service_prefix"
 | 
			
		||||
cd ${SEARX_SRC}
 | 
			
		||||
git checkout -B "$GIT_BRANCH"
 | 
			
		||||
git pull
 | 
			
		||||
git fetch origin "$GIT_BRANCH"
 | 
			
		||||
git reset --hard "origin/$GIT_BRANCH"
 | 
			
		||||
pip install -U pip
 | 
			
		||||
pip install -U setuptools
 | 
			
		||||
pip install -U wheel
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user