#!/bin/bash

echo "update configs to v1.5"
sudo sed -i -e 's/stable/release_1_5/g' /etc/apt/sources.list.d/starwind-san-and-nas.list
sudo sed -i -e 's/config_v1_6.json/release_v1_5.json/g' /opt/starwind/starwind-updatemanager/appsettings.json
sudo sed -i -e 's/stable/release_1_5/g' /opt/starwind/starwind-updatemanager/1389955e-fafa-41cb-b80c-a08003f47430/b402a0c7-4812-41c4-81ee-151626528c48.json
sudo systemctl restart starwind-updater.service
sudo apt update
sudo apt install -y starwind-san-and-nas
echo "update completed"
