Update scripts
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
# Common functions for the lab scripts
|
||||
# Copyright 2021 Bryan C. Roessler
|
||||
# Copyright Bryan C. Roessler
|
||||
|
||||
# Don't run this script directly
|
||||
[[ "${BASH_SOURCE[0]}" == "${0}" ]] && exit 0
|
||||
@@ -18,3 +18,14 @@ is_root() {
|
||||
user=$(whoami)
|
||||
[[ $user != "root" ]] && echo "Script must be run with sudo" && exit 1
|
||||
}
|
||||
|
||||
copy_manual() {
|
||||
cat <<-EOF > "$1/manual.desktop"
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=Hartman Lab Server Manual
|
||||
Type=Link
|
||||
URL=https://docs.google.com/document/d/1K_KwAlv8Zljmy-enwmhT6gMTFutlAFglixvpLGBx0VY
|
||||
Icon=text-html
|
||||
EOF
|
||||
}
|
||||
Reference in New Issue
Block a user