Просмотр исходного кода

Purge the dir before extracting the zip (frontend builds are annoying), make sure you don't store config file there (mine is stored in home dir)

poesty 1 год назад
Родитель
Сommit
d6f612a79b
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      update/update_slskd.sh

+ 2 - 1
update/update_slskd.sh

@@ -5,8 +5,9 @@ if [[ $current_version =~ $latest_version ]]; then
 	echo "Up-to-date"
 else
 	systemctl stop slskd.service
+	rm -r /opt/slskd/*
 	wget `curl -s https://api.github.com/repos/slskd/slskd/releases/latest | grep 'browser_download_url.*linux-x64' | cut -d '"' -f 4` -O /tmp/slskd.zip
-	unzip -o /tmp/slskd.zip -d /opt/slskd
+	unzip /tmp/slskd.zip -d /opt/slskd
 	rm /tmp/slskd.zip
 	# user permissions or whatever
 	systemctl start slskd.service