Update musicassistant.sh
This commit is contained in:
parent
09ba8c1a92
commit
c68ef0020e
@ -20,14 +20,33 @@ color
|
|||||||
catch_errors
|
catch_errors
|
||||||
|
|
||||||
function update_script() {
|
function update_script() {
|
||||||
header_info
|
header_info
|
||||||
check_container_storage
|
check_container_storage
|
||||||
check_container_resources
|
check_container_resources
|
||||||
|
|
||||||
if [[ ! -d /opt/musicassistant ]]; then
|
if [[ ! -d /opt/musicassistant ]]; then
|
||||||
msg_error "No Installation Found!"
|
msg_error "No existing installation found!"
|
||||||
exit
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
msg_info "Stopping Music Assistant service"
|
||||||
|
systemctl stop musicassistant
|
||||||
|
msg_ok "Service stopped"
|
||||||
|
|
||||||
|
msg_info "Updating Music Assistant files"
|
||||||
|
cd /opt/musicassistant || exit 1
|
||||||
|
$STD fetch_and_deploy_gh_release music-assistant/server
|
||||||
|
msg_ok "Music Assistant files updated"
|
||||||
|
|
||||||
|
msg_info "Updating Python virtual environment"
|
||||||
|
source .venv/bin/activate || exit 1
|
||||||
|
pip install --upgrade pip uv
|
||||||
|
uv pip install .
|
||||||
|
msg_ok "Python environment updated"
|
||||||
|
|
||||||
|
msg_info "Restarting Music Assistant service"
|
||||||
|
systemctl restart musicassistant
|
||||||
|
msg_ok "Service restarted"
|
||||||
}
|
}
|
||||||
|
|
||||||
start
|
start
|
||||||
|
Loading…
x
Reference in New Issue
Block a user