File tree Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 368
368
do_project_checks
369
369
do_env_checks
370
370
do_python3_checks
371
- sudo echo " Please enter sudo pasword if prompted"
371
+ echo " Please enter sudo pasword if prompted"
372
372
do_docker_checks
373
373
374
374
if [[ " $DOCKER_VERSION_GOOD " == " true" ]] && \
Original file line number Diff line number Diff line change @@ -21,4 +21,4 @@ elif [ $1 = "disableswap" ]; then
21
21
echo " set swappiness to 0 for immediate effect"
22
22
else
23
23
echo " Param not set, pass either 'uninstallswap' or 'disableswap'"
24
- fi
24
+ fi
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ if [ ! -d ~ /log2ram ]; then
4
+ git clone https://github.com/azlux/log2ram.git ~ /log2ram
5
+ chmod +x ~ /log2ram/install.sh
6
+ pushd ~ /log2ram
7
+ sudo ./install.sh
8
+ popd
9
+ else
10
+ echo " Log2RAM is already installed. You can reinstall by running: 'sudo ./install.sh' from ~/log2ram "
11
+ sleep 1
12
+ fi
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def uninstallSwapfile():
43
43
def installLog2Ram ():
44
44
print (term .clear ())
45
45
print ("Install log2ram:" )
46
- subprocess .call ("bash disable_swap .sh" , shell = True )
46
+ subprocess .call ("./scripts/install_log2ram .sh" , shell = True )
47
47
print ("" )
48
48
input ("Process terminated. Press [Enter] to show menu and continue." )
49
49
return True
You can’t perform that action at this time.
0 commit comments