[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 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 script