Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

Commit

Permalink
Make sure to fix permissions on steam home directory for workshop dow…
Browse files Browse the repository at this point in the history
…nloads (#7)
  • Loading branch information
thmhoag authored Jun 14, 2020
1 parent 6caecd2 commit 7328e82
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ echo "# Ark Server - " `date`
echo "###########################################################################"

echo "Ensuring correct permissions..."
sudo chown steam:steam -R /ark
sudo chown steam:steam -R /ark
sudo chown steam:steam -R /home/steam

# Remove arkmanager tracking files if they exist
# They can cause issues with starting the server multiple times
Expand Down Expand Up @@ -40,7 +41,7 @@ fi
echo -e "\n\narkserverroot=\"/ark/server\"\n" >> /ark/config/arkmanager.cfg
printenv | sed -n -r 's/am_(.*)=(.*)/\1=\"\2\"/ip' >> /ark/config/arkmanager.cfg

if [ ! -d /ark/server ] || [ ! -f /ark/server/ShooterGame/Binaries/Linux/ShooterGameServer ]; then
if [ ! -d /ark/server ] || [ ! -f /ark/server/ShooterGame/Binaries/Linux/ShooterGameServer ]; then
echo "No game files found. Installing..."
mkdir -p /ark/server/ShooterGame/Saved/SavedArks
mkdir -p /ark/server/ShooterGame/Saved/Config/LinuxServer
Expand Down

0 comments on commit 7328e82

Please sign in to comment.