forked from StartLabsDev/Tidal-Connect-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·34 lines (24 loc) · 950 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# Pulling latest image
echo "Pulling latest image: 'docker pull edgecrush3r/tidal-connect:latest'."
docker pull edgecrush3r/tidal-connect:latest
# Enable service
printf "\nEnabling Tidal Service...\n"
#cp systemd/tidal.service /etc/systemd/system/
eval "echo \"$(cat systemd/tidal.service)\"" >/etc/systemd/system/tidal.service
systemctl enable tidal.service
# Add Tidal Source to Beocreate
SYMLINK_FOLDER=/opt/beocreate/beo-extensions/tidal
if [ -L "$SYMLINK_FOLDER" ]; then
# Already installed... remove symlink and re-install
echo "Tidal extension found, removing previous install..."
rm $SYMLINK_FOLDER
fi
printf "\nAdding Tidal Source to Beocreate UI...\n"
ln -s ${PWD}/beocreate/beo-extensions/tidal /opt/beocreate/beo-extensions/tidal
printf "\n\nInstallation Completed...\n"
if [ "$(docker ps -q -f name=docker_tidal-connect)" ]; then
./stop-tidal-service.sh
fi
./start-tidal-service.sh
./restart_beocreate2.sh