forked from ghostchain/ghost-node
		
	finalize starter script for the hard reset
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
This commit is contained in:
		
							parent
							
								
									df85600159
								
							
						
					
					
						commit
						6918e8057a
					
				@ -220,17 +220,20 @@ if [[ $HARD_RESET = true ]]; then
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    downgrade_compiler_if_needed
 | 
					    downgrade_compiler_if_needed
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    echo "[+] trying to stop current ghost-node"
 | 
				
			||||||
 | 
					    sudo systemctl stop ghost-node
 | 
				
			||||||
 | 
					    echo "[+] trying to remove locally stored ledger"
 | 
				
			||||||
 | 
					    sudo rm -rf "$BASE_PATH/chains/casper_staging_testnet"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    cd $PROJECT_FOLDER
 | 
					    cd $PROJECT_FOLDER
 | 
				
			||||||
    echo "[+] clean build cache..."
 | 
					    echo "[+] clean build cache..."
 | 
				
			||||||
    cargo clean
 | 
					    cargo clean
 | 
				
			||||||
    echo "[+] starting build in 3 seconds..."
 | 
					    echo "[+] starting build in 3 seconds..."
 | 
				
			||||||
    sleep 3
 | 
					    sleep 3
 | 
				
			||||||
    cargo build $RELEASE $FEATURES
 | 
					    cargo build --release
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    echo "[+] trying to stop current ghost-node"
 | 
					    printf "[?] are you ready to continue?"
 | 
				
			||||||
    sudo systemctl stop ghost-node
 | 
					    read anything
 | 
				
			||||||
    echo "[+] trying to remove locally stored ledger"
 | 
					 | 
				
			||||||
    sudo rm -rf "$BASE_PATH/chains/*"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    cd $PROJECT_FOLDER
 | 
					    cd $PROJECT_FOLDER
 | 
				
			||||||
    echo "[+] trying to copy executable to '$EXECUTABLE_PATH'"
 | 
					    echo "[+] trying to copy executable to '$EXECUTABLE_PATH'"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user