mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-25 22:18:07 +00:00
Merge pull request #869 from cwiggs/fix/log2ram
fix: log2ram can't stop before it's installed
This commit is contained in:
commit
6162fe0487
|
@ -454,17 +454,20 @@ npm install -g yarn
|
||||||
|
|
||||||
# Install Log2Ram
|
# Install Log2Ram
|
||||||
if [ $IS_RASPI = 1 ] || [ $IS_X86 = 1 ]; then
|
if [ $IS_RASPI = 1 ] || [ $IS_X86 = 1 ]; then
|
||||||
|
if [ ! -f /usr/local/bin/log2ram ]; then
|
||||||
cd /tmp
|
cd /tmp
|
||||||
rm -rf log2ram*
|
rm -rf log2ram* || true
|
||||||
wget https://github.com/azlux/log2ram/archive/v1.2.2.tar.gz -O log2ram.tar.gz
|
wget https://github.com/azlux/log2ram/archive/v1.2.2.tar.gz -O log2ram.tar.gz
|
||||||
tar -xvf log2ram.tar.gz
|
tar -xvf log2ram.tar.gz
|
||||||
mv log2ram-* log2ram
|
mv log2ram-* log2ram
|
||||||
cd log2ram
|
cd log2ram
|
||||||
chmod +x install.sh
|
chmod +x install.sh
|
||||||
service log2ram stop
|
service log2ram stop || true
|
||||||
./install.sh
|
./install.sh || true
|
||||||
cd ~
|
cd ~
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Remove existing MOTD login info
|
# Remove existing MOTD login info
|
||||||
rm -rf /etc/motd
|
rm -rf /etc/motd
|
||||||
|
|
Loading…
Reference in New Issue
Block a user