Update Guide - TobKra96/music_led_strip_control GitHub Wiki

In order to update MLSC, follow the steps below:

Method 1 (Using Setup Script)

Ensure you are not inside the MLSC music_led_strip_control directory.

/share/music_led_strip_control is the default directory.

Stop the MLSC service:

sudo systemctl stop mlsc.service

Run the MLSC Automated installation Script:

curl -sSL https://raw.githubusercontent.com/TobKra96/music_led_strip_control/master/setup.sh | sudo bash

Input "Y", when the following prompt appears:

[2/4] Installing MLSC...
MLSC is already installed. Do you want to reinstall it? [y/N]

Start the MLSC service:

sudo systemctl start mlsc.service

Method 2 (Using Git)

Ensure you are inside the MLSC music_led_strip_control directory.

Stop the MLSC service:

sudo systemctl stop mlsc.service

Run the following git commands:

git checkout master
git pull origin master

If you want to use a different branch, replace master with the required one, for example, dev_2.3.

Start the MLSC service:

sudo systemctl start mlsc.service

Troubleshooting

If you run into any issues while updating MLSC, just delete the whole repository, and clone it again:

cd /share/
sudo rm -r music_led_strip_control/
sudo git clone https://github.com/TobKra96/music_led_strip_control

Exporting the config file using the Web Interface is advised in case you accidentally delete the .mlsc directory.

Note: Your config will be automatically restored after updating MLSC. If you want to manually make a backup of config.json, it is saved in /share/.mlsc/config.json.