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.
24 lines
830 B
24 lines
830 B
#!/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")")"
|
|
|
|
$APT_CMD update >>$OUTPUT 2>&1 &&
|
|
$APT_CMD install $APT_OPTIONS $APT_OPTIONS2 \
|
|
software-properties-common >>$OUTPUT 2>&1
|
|
|
|
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5
|
|
add-apt-repository 'deb https://download.onlyoffice.com/repo/debian squeeze main'
|
|
|
|
$APT_CMD autoremove $APT_OPTIONS $APT_OPTIONS2 \
|
|
software-properties-common >>$OUTPUT 2>&1
|
|
|
|
# install packages
|
|
if [ -f $SCRIPT_DIR/$PACKAGE_VARIANT.list ]; then
|
|
$APT_CMD update >>$OUTPUT 2>&1 &&
|
|
$APT_CMD install $APT_OPTIONS $APT_OPTIONS2 \
|
|
$(grep -vE "^\s*#" $SCRIPT_DIR/$PACKAGE_VARIANT.list | tr "\n" " ") >>$OUTPUT 2>&1
|
|
fi
|
|
|