summarylogtreecommitdiffstats
path: root/spotify-backup-git.install
diff options
context:
space:
mode:
Diffstat (limited to 'spotify-backup-git.install')
-rw-r--r--spotify-backup-git.install9
1 files changed, 9 insertions, 0 deletions
diff --git a/spotify-backup-git.install b/spotify-backup-git.install
new file mode 100644
index 000000000000..a2e646df842b
--- /dev/null
+++ b/spotify-backup-git.install
@@ -0,0 +1,9 @@
+post_install() {
+ # Create the spotify-backup.conf file if it doesn't exist
+ sudo spotify-backup -c /var/lib/spotify-backup/spotify-backup.conf /dev/null &> /dev/null
+
+ echo "You will probably need to create a spotify application and add its client_id and client_secret to /var/lib/spotify-backup/spotify-backup.conf"
+ echo "You will then need to run spotify-backup once manually to set the access and refresh tokens:"
+ echo "# spotify-backup -c /var/lib/spotify-backup/spotify-backup.conf /dev/null"
+}
+