Skip to content

Commit 123f35c

Browse files
author
Slyke
committed
Removed sudo requirement on startup. Fixed copy paste typo with log2eam installing disable swap.
1 parent 007a6a1 commit 123f35c

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

menu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ else
368368
do_project_checks
369369
do_env_checks
370370
do_python3_checks
371-
sudo echo "Please enter sudo pasword if prompted"
371+
echo "Please enter sudo pasword if prompted"
372372
do_docker_checks
373373

374374
if [[ "$DOCKER_VERSION_GOOD" == "true" ]] && \

scripts/disable_swap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ elif [ $1 = "disableswap" ]; then
2121
echo "set swappiness to 0 for immediate effect"
2222
else
2323
echo "Param not set, pass either 'uninstallswap' or 'disableswap'"
24-
fi
24+
fi

scripts/install_log2ram.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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

scripts/misc_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def uninstallSwapfile():
4343
def installLog2Ram():
4444
print(term.clear())
4545
print("Install log2ram:")
46-
subprocess.call("bash disable_swap.sh", shell=True)
46+
subprocess.call("./scripts/install_log2ram.sh", shell=True)
4747
print("")
4848
input("Process terminated. Press [Enter] to show menu and continue.")
4949
return True

0 commit comments

Comments
 (0)