Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: log2ram can't stop before it's installed #869

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions setup/setup_device.sh
Original file line number Diff line number Diff line change
Expand Up @@ -454,18 +454,21 @@ npm install -g yarn

# Install Log2Ram
if [ $IS_RASPI = 1 ] || [ $IS_X86 = 1 ]; then
cd /tmp
rm -rf log2ram*
wget https://github.com/azlux/log2ram/archive/v1.2.2.tar.gz -O log2ram.tar.gz
tar -xvf log2ram.tar.gz
mv log2ram-* log2ram
cd log2ram
chmod +x install.sh
service log2ram stop
./install.sh
cd ~
if [ ! -f /usr/local/bin/log2ram ]; then
cd /tmp
rm -rf log2ram* || true
wget https://github.com/azlux/log2ram/archive/v1.2.2.tar.gz -O log2ram.tar.gz
tar -xvf log2ram.tar.gz
mv log2ram-* log2ram
cd log2ram
chmod +x install.sh
service log2ram stop || true
./install.sh || true
cd ~
fi
fi


# Remove existing MOTD login info
rm -rf /etc/motd
rm -rf /etc/update-motd.d/*
Expand Down