Updated apps category

This commit is contained in:
2026-01-30 13:39:16 +01:00
parent 4b9432c5e7
commit 53a3e0e1d8
24 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
#!/bin/bash
#### Variables
APT_INST="apt -y install"
PKG_DEPS=(wget)
URL_SRC="https://global.synologydownload.com/download/Utility/SynologyDriveClient/4.0.2-17889/Ubuntu/Installer/synology-drive-client-17889.x86_64.deb"
#### Functions
check_root() {
if [ "$EUID" -ne 0 ]; then
echo "Must be root to run $0"
exit
fi
}
choice() {
echo -ne "[y/n]"
while true
do
read -rN1 input
case $input in
[yY][eE][sS]|[yY])
return 0
break
;;
[nN][oO]|[nN])
return 1
;;
esac
done
}
synology-drive_install() {
echo "* download synology-drive"
wget --quiet --show-progress "$URL_SRC" -O /tmp/synology-drive-client.x86_64.deb
echo "* install package from $URL_SRC"
dpkg -i /tmp/synology-drive-client.x86_64.deb
echo "* installation completed"
}
#### Main
check_root
synology-drive_install