-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·16 lines (16 loc) · 933 Bytes
/
setup.sh
File metadata and controls
executable file
·16 lines (16 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
sudo ln -s -f "$(pwd)"/etc/systemd/system/librespot.service /etc/systemd/system/librespot.service
sudo ln -s -f "$(pwd)"/etc/systemd/system/spotbot.service /etc/systemd/system/spotbot.service
sudo ln -s -f "$(pwd)"/etc/systemd/system/spotbot_script.service /etc/systemd/system/spotbot_script.service
sudo ln -s -f "$(pwd)"/etc/systemd/system/spotbot_script.timer /etc/systemd/system/spotbot_script.timer
sudo systemctl daemon-reload
sudo systemctl start librespot.service
sudo systemctl enable librespot.service
sudo systemctl start spotbot.service
sudo systemctl enable spotbot.service
sudo systemctl start spotbot_script.service
sudo systemctl enable spotbot_script.service
sudo systemctl start spotbot_script.timer
sudo ln -s -f "$(pwd)"/etc/nginx/sites-available/spotbot /etc/nginx/sites-available/spotbot
sudo ln -s -f /etc/nginx/sites-available/spotbot /etc/nginx/sites-enabled/spotbot
sudo systemctl restart nginx