Merge pull request #869 from cwiggs/fix/log2ram

fix: log2ram can't stop before it's installed
This commit is contained in:
Taylor Helsper 2024-08-07 22:37:31 -05:00 committed by GitHub
commit 6162fe0487
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -454,18 +454,21 @@ npm install -g yarn
# Install Log2Ram # Install Log2Ram
if [ $IS_RASPI = 1 ] || [ $IS_X86 = 1 ]; then if [ $IS_RASPI = 1 ] || [ $IS_X86 = 1 ]; then
cd /tmp if [ ! -f /usr/local/bin/log2ram ]; then
rm -rf log2ram* cd /tmp
wget https://github.com/azlux/log2ram/archive/v1.2.2.tar.gz -O log2ram.tar.gz rm -rf log2ram* || true
tar -xvf log2ram.tar.gz wget https://github.com/azlux/log2ram/archive/v1.2.2.tar.gz -O log2ram.tar.gz
mv log2ram-* log2ram tar -xvf log2ram.tar.gz
cd log2ram mv log2ram-* log2ram
chmod +x install.sh cd log2ram
service log2ram stop chmod +x install.sh
./install.sh service log2ram stop || true
cd ~ ./install.sh || true
cd ~
fi
fi fi
# Remove existing MOTD login info # Remove existing MOTD login info
rm -rf /etc/motd rm -rf /etc/motd
rm -rf /etc/update-motd.d/* rm -rf /etc/update-motd.d/*