Article 509F2 [NEWBIE] Help with Bashscript for Google Cloud VM instance.

[NEWBIE] Help with Bashscript for Google Cloud VM instance.

by
skye7777
from LinuxQuestions.org on (#509F2)
//Startup Script
#! /bin/bash
yum -y update

su csgoserver -c "./csgoserver update"
su csgoserver -c "./csgoserver start"

//Shutdown Script
#! /bin/bash

su csgoserver -c "./csgoserver stop"

Is there a way for me to cd into "/home/csgoserver" at the beginning so i can get this script to work. Thanks. Im not entirely sure about this scriptlatest?d=yIl2AUoC8zA latest?i=OZYqT_4jcUw:X2cIPRUMIc4:F7zBnMy latest?i=OZYqT_4jcUw:X2cIPRUMIc4:V_sGLiP latest?d=qj6IDK7rITs latest?i=OZYqT_4jcUw:X2cIPRUMIc4:gIN9vFwOZYqT_4jcUw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments