Compare commits
	
		
			13 commits
		
	
	
		
			6b9a2380ce
			...
			cbe837176f
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | cbe837176f | ||
|  | b1a5f3d704 | ||
|  | a7f6d84a52 | ||
|  | f846a62eaa | ||
|  | 1ec3f99d30 | ||
|  | 68c9aabe5e | ||
|  | c1b90ff2f9 | ||
|  | cd1f052991 | ||
|  | 51ad5f1768 | ||
|  | 6be7ab800a | ||
|  | abd7be2634 | ||
|  | 7ee0c34547 | ||
|  | eea1a2af99 | 
					 1 changed files with 14 additions and 0 deletions
				
			
		
							
								
								
									
										14
									
								
								cleanup/cleanup.sh
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								cleanup/cleanup.sh
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,14 @@ | ||||||
|  | #! /bin/sh | ||||||
|  | 
 | ||||||
|  | rm -rf /root/.cache /root/.rnd | ||||||
|  | find /tmp -type d -name 'systemd-*-systemd-timesyncd.service*' -exec rm -rf '{}' '+' | ||||||
|  | find /var/tmp -type d -name 'systemd-*-systemd-timesyncd.service*' -exec rm -rf '{}' '+' | ||||||
|  | find /var/lib/apt -type f -delete | ||||||
|  | find /var/cache/apt -type f -delete | ||||||
|  | find /var/log -type f -regextype posix-extended -regex '.*\.(gz|xz|[0-9])' -delete | ||||||
|  | truncate -s0 $HOME/.bash_history | ||||||
|  | [ -w $HOME/.zsh_history ] && truncate -s0 $HOME/.zsh_history | ||||||
|  | find /var/log -type f -exec truncate -s0 '{}' '+' | ||||||
|  | dd if=/dev/zero of=/emptyfile oflag=dsync status=progress bs=4M; | ||||||
|  | rm -f /emptyfile; | ||||||
|  | systemctl poweroff | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue