Actualiser install.sh
This commit is contained in:
parent
58d865ef77
commit
6b5e351366
@ -41,19 +41,20 @@ apt install -y kdenlive
|
||||
apt install -y obs-studio
|
||||
|
||||
# Logiciel hors dépôts : Synology Drive Client
|
||||
# Étape 1 : Obtention de l'URL de la dernière version
|
||||
latest_version_url=$(curl -sL "https://archive.synology.com/download/Utility/SynologyDriveClient/" \
|
||||
| grep -oE 'href="[^"]+"' \
|
||||
| grep -oE '[0-9]+\.[0-9]+\.[0-9]+-[0-9]+' \
|
||||
| sort -V \
|
||||
| tail -1)
|
||||
|
||||
# Étape 2 : Téléchargement du fichier .deb à partir de l'URL de la dernière version
|
||||
wget -qO- "https://archive.synology.com/download/Utility/SynologyDriveClient/$latest_version_url/" \
|
||||
| grep -oP 'href="[^"]+synology-drive-client-.*?\.x86_64\.deb"' \
|
||||
| grep -oP 'https://[^"]+' \
|
||||
| wget -i -
|
||||
|
||||
release=$(ls synology-drive-client-*.x86_64.deb | tail -1)
|
||||
dpkg -i $release
|
||||
|
||||
# Logiciel hors dépots : Youtube music (E: Sub-process /usr/bin/dpkg returned an error code)
|
||||
#package="https://(.*)youtube-music_(.*).deb"
|
||||
#wget $(curl -L -s https://api.github.com/repos/th-ch/youtube-music/releases/latest | grep -o -E $package) -P /tmp/wibian/
|
||||
@ -84,6 +85,7 @@ com.stremio.Stremio
|
||||
|
||||
# Installation des drivers Nvidia (reboot nécessaire)
|
||||
gpu=$(lspci | grep -i 'nvidia')
|
||||
|
||||
if [[ -n $gpu ]]; then
|
||||
printf 'Une carte Nvidia a été détectée: %s\n' "$gpu"
|
||||
apt install linux-headers-amd64
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user