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.
 
 
 
 
 
 

32 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")")"
# install packages
if [ -f $SCRIPT_DIR/$PACKAGE_VARIANT.list ]; then
$APT_CMD update &&
$APT_CMD install $APT_OPTIONS $APT_OPTIONS2 \
$(grep -vE "^\s*#" $SCRIPT_DIR/$PACKAGE_VARIANT.list | tr "\n" " ") >>$OUTPUT 2>&1
fi
if [ $PACKAGE_VARIANT = "standard" ]; then
if [ $DISTRIBUTION = "stretch" ]; then
echo 'deb http://ftp.debian.org/debian stretch-backports main' | sudo tee --append /etc/apt/sources.list.d/stretch-backports.list >>$OUTPUT 2>&1
$APT_CMD update &&
$APT_CMD install -t stretch-backports $APT_OPTIONS $APT_OPTIONS2 \
remmina remmina-plugin-rdp remmina-plugin-vnc >>$OUTPUT 2>&1
else
$APT_CMD update &&
$APT_CMD install $APT_OPTIONS $APT_OPTIONS2 \
remmina remmina-plugin-rdp remmina-plugin-vnc >>$OUTPUT 2>&1
fi
fi
if [ $PACKAGE_VARIANT = "minimal" ]; then
sed -i 's,create=xarchiver --add-to,create=xarchiver --compress,g' /usr/share/libfm/archivers.list
fi