Formatting and bug resolutions

This commit is contained in:
Price Hiller 2021-08-17 20:21:33 -05:00
parent f6fe8786c3
commit 394dd8a3e8
4 changed files with 6 additions and 8 deletions

View File

@ -10,9 +10,9 @@ cd "${STEAM_DIRECTORY}"
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
chmod -R 755 "${STEAM_DIRECTORY}"
cat << 'EOF' > /usr/sbin/steamcmd
cat << 'EOF' > /usr/local/bin/steamcmd
/home/Steam/steamcmd.sh "$@"
EOF
chmod 755 /usr/sbin/steamcmd
chmod 755 /usr/local/bin/steamcmd
/usr/sbin/steamcmd +quit

View File

@ -27,6 +27,7 @@ chown -R ${REMOTE_USER_TO_CREATE}:${REMOTE_USER_TO_CREATE} /home/${REMOTE_USER_T
EOF
cat << EOF >> ~/.ssh/config
Host ${SSH_HOST}
HostName ${REMOTE_HOST_NAME}
Match user ${REMOTE_USER_TO_CREATE}
@ -40,4 +41,4 @@ echo export PATH=$PATH:~/.bin > ~/.bash_profile
EOF
echo
echo "Finished, login via ssh with \"${REMOTE_USER_TO_CREATE}@${SSH_HOST}\""
echo "Finished, login via ssh with \"${REMOTE_USER_TO_CREATE}@${SSH_HOST}\""

View File

@ -48,10 +48,10 @@ parse_args() {
break
;;
-i | --input)
echo "${2}"
echo "${1}"
;;
-t | --test)
echo "${2}"
echo "${1}"
;;
-?*)
printf 'Unknown option: %s\n' "$1" >&2

View File

@ -1,8 +1,5 @@
#!/bin/bash
check_root() {
[[ "$(id -u)" = 0 ]] || (echo "Root permissions required, exiting" && exit 1)
}