diff --git a/scripts/linuxparty.sh b/scripts/linuxparty.sh index 4ba75bb6053050c345e467cd0cf26d997a0d76df..81ae164b8fd9e42dcb6264df0ef569b1ba55f643 100644 --- a/scripts/linuxparty.sh +++ b/scripts/linuxparty.sh @@ -25,6 +25,7 @@ MY_DIR="$( readlink -f "$( dirname "${BASH_SOURCE[0]}" )" )" HIVE_DIR="$MY_DIR/../hive/" #we assume here that the LIP install stick is mounted at /media/MultiBoot... better idea? #images already installed +# TODO: include libreoffice-common (for documentation)? PREINSTALLED_PKGS="thunderbird vlc x2goclient p7zip-full unrar-free kile vim htop git gparted" #Liste, in der alle Pakete verzeichnet werden, die vom Skript tatsächlich installiert werden; Pseudo-Pakete sind "all-capital" @@ -288,6 +289,8 @@ showerr() { } trap showerr ERR +# TODO: --force-yes results in the following warning: +# W: --force-yes is deprecated, use one of the options starting with --allow instead. apt-install() { apt-get install --quiet -y --force-yes $@ INSTALLED_PKGS="$INSTALLED_PKGS $@" @@ -397,14 +400,13 @@ create_doc() fi popd - #USER_HOME=$(getent passwd "${SUDO_USER:-$USER}" | cut -d ':' -f6) - #cp "${WORKING_DIR}/DOCUMENTATION.gen.pdf" "${USER_HOME}/Deine-LIP-Dokumentation.pdf" # jetzt wird hoffentlich an alle relevanten Stellen kopiert - for i in /home/*/; do - cp "${WORKING_DIR}/DOCUMENTATION.gen.pdf" "$i""/Deine-LIP-Dokumentation.pdf" + ls -1 /home | grep -v '^kubuntu$' | while read line + do + cp "${WORKING_DIR}/DOCUMENTATION.gen.pdf" "/home/$line/Deine-LIP-Dokumentation.pdf" done RC=$? - pressenter "Eine Dokumentation der von dir installierten Paktete wurde in deinem Benutzerverzeichnis als 'Deine-LIP-Dokumentation.pdf' abegelegt." + pressenter "Eine Dokumentation der von dir installierten Paktete wurde in deinem Benutzerverzeichnis als 'Deine-LIP-Dokumentation.pdf' abgelegt." return $RC }