Skip to content
Snippets Groups Projects
Commit 26282aee authored by Valentin Bruch's avatar Valentin Bruch
Browse files

linuxparty.sh: don't copy doku to /home/kubuntu; corrected typo

parent e458fab4
No related branches found
No related tags found
No related merge requests found
...@@ -25,6 +25,7 @@ MY_DIR="$( readlink -f "$( dirname "${BASH_SOURCE[0]}" )" )" ...@@ -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? HIVE_DIR="$MY_DIR/../hive/" #we assume here that the LIP install stick is mounted at /media/MultiBoot... better idea?
#images already installed #images already installed
# TODO: include libreoffice-common (for documentation)?
PREINSTALLED_PKGS="thunderbird vlc x2goclient p7zip-full unrar-free kile vim htop git gparted" 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" #Liste, in der alle Pakete verzeichnet werden, die vom Skript tatsächlich installiert werden; Pseudo-Pakete sind "all-capital"
...@@ -288,6 +289,8 @@ showerr() { ...@@ -288,6 +289,8 @@ showerr() {
} }
trap showerr ERR 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-install() {
apt-get install --quiet -y --force-yes $@ apt-get install --quiet -y --force-yes $@
INSTALLED_PKGS="$INSTALLED_PKGS $@" INSTALLED_PKGS="$INSTALLED_PKGS $@"
...@@ -397,14 +400,13 @@ create_doc() ...@@ -397,14 +400,13 @@ create_doc()
fi fi
popd 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 # jetzt wird hoffentlich an alle relevanten Stellen kopiert
for i in /home/*/; do ls -1 /home | grep -v '^kubuntu$' | while read line
cp "${WORKING_DIR}/DOCUMENTATION.gen.pdf" "$i""/Deine-LIP-Dokumentation.pdf" do
cp "${WORKING_DIR}/DOCUMENTATION.gen.pdf" "/home/$line/Deine-LIP-Dokumentation.pdf"
done done
RC=$? 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 return $RC
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment