You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.2 KiB
26 lines
1.2 KiB
#!/bin/bash
|
|
|
|
set -e # exit on error
|
|
set -o pipefail # exit on pipeline error
|
|
set -u # treat unset variable as error
|
|
|
|
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
|
|
|
|
# opera & onlyoffice & vscode
|
|
:'wget -qO - https://deb.opera.com/archive.key | sudo apt-key add -
|
|
sudo add-apt-repository 'deb https://deb.opera.com/opera-stable/ stable non-free'
|
|
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
|
|
sudo add-apt-repository 'deb https://download.onlyoffice.com/repo/debian squeeze main'
|
|
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
|
|
sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
|
|
sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" > /etc/apt/sources.list.d/vscode.list'
|
|
rm -f packages.microsoft.gpg'
|
|
|
|
# install packages
|
|
if [ -f $SCRIPT_DIR/package.list ]; then
|
|
sudo DEBIAN_FRONTEND=$DEBIAN_FRONTEND_TYPE \
|
|
$APT_CMD update >>$OUTPUT 2>&1 &&
|
|
sudo DEBIAN_FRONTEND=$DEBIAN_FRONTEND_TYPE \
|
|
$APT_CMD install $APT_OPTIONS \
|
|
$(grep -vE "^\s*#" $SCRIPT_DIR/package.list | tr "\n" " ") >>$OUTPUT 2>&1
|
|
fi
|
|
|