mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	clean_node_cache: Remove.
The old /srv/zulip-npm-cache system has been unused for two years (Zulip Server ≥ 7.0). We can just delete this directory. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							6db76c8fa8
						
					
				
				
					commit
					3823697e6c
				
			@@ -1,18 +1,19 @@
 | 
			
		||||
#!/usr/bin/env python3
 | 
			
		||||
import argparse
 | 
			
		||||
import os
 | 
			
		||||
import shutil
 | 
			
		||||
import sys
 | 
			
		||||
 | 
			
		||||
ZULIP_PATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
 | 
			
		||||
sys.path.append(ZULIP_PATH)
 | 
			
		||||
from scripts.lib import clean_emoji_cache, clean_node_cache, clean_venv_cache
 | 
			
		||||
from scripts.lib import clean_emoji_cache, clean_venv_cache
 | 
			
		||||
from scripts.lib.zulip_tools import parse_cache_script_args
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def main(args: argparse.Namespace) -> None:
 | 
			
		||||
    os.chdir(ZULIP_PATH)
 | 
			
		||||
    clean_venv_cache.main(args)
 | 
			
		||||
    clean_node_cache.main(args)
 | 
			
		||||
    shutil.rmtree("/srv/zulip-npm-cache", ignore_errors=True)  # Replaced as of 7.0
 | 
			
		||||
    clean_emoji_cache.main(args)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user