Skip to content

Commit

Permalink
Update setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rmens committed Mar 8, 2024
1 parent 9cdbf87 commit 44b7e69
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@ curl -s -o /etc/systemd/system/ramdisk.service https://raw.githubusercontent.com
systemctl daemon-reload > /dev/null
systemctl enable ramdrive > /dev/null

# Put MicroMPX logs on RAM disk
if [ -d "/home/micrompx/.MicroMPX_Decoder.log" ]; then
echo -e "Directory /home/micrompx/.MicroMPX_Decoder.log exists. Removed if before creating the symlink."
rm -rf "/home/micrompx/.MicroMPX_Decoder.log"
fi
ln -s /mnt/ramdisk /home/micrompx/.MicroMPX_Decoder.log
chown -R micrompx:micrompx /mnt/ramdisk

# Heartbeat monitoring
ask_user "ENABLE_HEARTBEAT" "n" "Do you want to integrate heartbeat monitoring via UptimeRobot (y/n)" "y/n"
if [ "$ENABLE_HEARTBEAT" == "y" ]; then
Expand Down

0 comments on commit 44b7e69

Please sign in to comment.