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 -
|
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
|
||||||
chmod -R 755 "${STEAM_DIRECTORY}"
|
chmod -R 755 "${STEAM_DIRECTORY}"
|
||||||
|
|
||||||
cat << 'EOF' > /usr/sbin/steamcmd
|
cat << 'EOF' > /usr/local/bin/steamcmd
|
||||||
/home/Steam/steamcmd.sh "$@"
|
/home/Steam/steamcmd.sh "$@"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
chmod 755 /usr/sbin/steamcmd
|
chmod 755 /usr/local/bin/steamcmd
|
||||||
/usr/sbin/steamcmd +quit
|
/usr/sbin/steamcmd +quit
|
||||||
|
@ -27,6 +27,7 @@ chown -R ${REMOTE_USER_TO_CREATE}:${REMOTE_USER_TO_CREATE} /home/${REMOTE_USER_T
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat << EOF >> ~/.ssh/config
|
cat << EOF >> ~/.ssh/config
|
||||||
|
|
||||||
Host ${SSH_HOST}
|
Host ${SSH_HOST}
|
||||||
HostName ${REMOTE_HOST_NAME}
|
HostName ${REMOTE_HOST_NAME}
|
||||||
Match user ${REMOTE_USER_TO_CREATE}
|
Match user ${REMOTE_USER_TO_CREATE}
|
||||||
@ -40,4 +41,4 @@ echo export PATH=$PATH:~/.bin > ~/.bash_profile
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
echo
|
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
|
break
|
||||||
;;
|
;;
|
||||||
-i | --input)
|
-i | --input)
|
||||||
echo "${2}"
|
echo "${1}"
|
||||||
;;
|
;;
|
||||||
-t | --test)
|
-t | --test)
|
||||||
echo "${2}"
|
echo "${1}"
|
||||||
;;
|
;;
|
||||||
-?*)
|
-?*)
|
||||||
printf 'Unknown option: %s\n' "$1" >&2
|
printf 'Unknown option: %s\n' "$1" >&2
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
check_root() {
|
check_root() {
|
||||||
[[ "$(id -u)" = 0 ]] || (echo "Root permissions required, exiting" && exit 1)
|
[[ "$(id -u)" = 0 ]] || (echo "Root permissions required, exiting" && exit 1)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user