File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ It will install the SystemGuard app and its dependencies in the crontab and it w
4242
4343``` bash
4444# install miniconda3 if not installed already
45- chmod +x src/scripts/install_miniconda.sh && ./src/scripts/install_miniconda.sh
45+ wget https://raw.githubusercontent.com/codeperfectplus/HackScripts/main/setup/install_miniconda.sh
46+ chmod +x install_miniconda.sh && ./install_miniconda.sh
4647```
4748
4849## Features 🚀
Original file line number Diff line number Diff line change 33LOG_FILE=" /tmp/miniconda_installation.log"
44MINICONDA_SCRIPT_URL=" https://raw.githubusercontent.com/codeperfectplus/HackScripts/main/setup/install_miniconda.sh"
55MINICONDA_SCRIPT_PATH=" /tmp/install_miniconda.sh"
6- EXPECTED_CHECKSUM=" abe9fde50a47831e7d17bee0d16af4bd5ea01e79ee6d744912a9bd3b31c1e4f0" # Replace with the actual checksum
76
87log () {
98 echo " $( date ' +%Y-%m-%d %H:%M:%S' ) - $1 " | tee -a " $LOG_FILE "
@@ -44,15 +43,6 @@ install_miniconda() {
4443 return 1
4544 fi
4645
47- log " Verifying script integrity using checksum."
48- DOWNLOAD_CHECKSUM=$( sha256sum " $MINICONDA_SCRIPT_PATH " | awk ' {print $1}' )
49- echo " Downloaded checksum: $DOWNLOAD_CHECKSUM "
50- if [ " $DOWNLOAD_CHECKSUM " = " $EXPECTED_CHECKSUM " ]; then
51- log " Checksum verification passed."
52- else
53- log " Checksum verification failed. Aborting installation."
54- return 1
55- fi
5646
5747 chmod +x " $MINICONDA_SCRIPT_PATH "
5848
You can’t perform that action at this time.
0 commit comments