Formatting and bug resolutions
This commit is contained in:
parent
f6fe8786c3
commit
394dd8a3e8
@ -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
|
||||
|
@ -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}\""
|
||||
|
@ -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
|
||||
|
@ -1,8 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
|
||||
|
||||
check_root() {
|
||||
[[ "$(id -u)" = 0 ]] || (echo "Root permissions required, exiting" && exit 1)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user