Update manual deploy

This commit is contained in:
2023-04-07 11:43:02 -04:00
parent 78452080e2
commit 0db49dfbf1

View File

@@ -23,17 +23,19 @@ for script in script-*; do
done
# Install manual link
remove=("manual.pdf" "manual.odt" "Notes.pdf" "Notes.odt" "README.html" "manual-images" "manual.html" "manual-images")
remove=("manual.pdf" "manual.odt" "Notes.pdf" "Notes.odt"
"README.html" "Link to Manual.desktop" "manual-images"
"manual.html" "manual-images" "Manual.desktop" "manual.desktop")
for homedir in /home/*; do
desktop="$homedir/Desktop"
[[ -d $desktop ]] || continue
for f in "${remove[@]}"; do
[[ -f $desktop/$f ]] && rm -rf "${desktop:?}/$f"
done
cat <<-EOF > "$desktop/Link to Manual.desktop"
cat <<-EOF > "$desktop/manual.desktop"
[Desktop Entry]
Encoding=UTF-8
Name=Link to Hartman Lab Server Manual
Name=Hartman Lab Server Manual
Type=Link
URL=https://docs.google.com/document/d/1K_KwAlv8Zljmy-enwmhT6gMTFutlAFglixvpLGBx0VY
Icon=text-html