use mktemp for ram dir
This commit is contained in:
		
							parent
							
								
									427a5355bc
								
							
						
					
					
						commit
						0825f2dd01
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -6,7 +6,7 @@ else | |||
|     echo "This system does not have /dev/shm. Cannot use this script." | ||||
|     exit 9; | ||||
| fi | ||||
| ONIONR_HOME=/dev/shm/onionr$RANDOM$RANDOM$RANDOM | ||||
| ONIONR_HOME=$(mktemp -p /dev/shm/ -d -t onionr-XXXXXXXXXXX) | ||||
| export ONIONR_HOME | ||||
| echo "Onionr has been launched with a temporary home directory using /dev/shm. Note that the OS may still write to swap if applicable." | ||||
| echo "Future Onionr commands will use your set or default Onionr home directory, unless you set it to $ONIONR_HOME" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue