{"action":"created","issue":{"url":"https://api.github.com/repos/FezVrasta/ark-server-tools/issues/104","labels_url":"https://api.github.com/repos/FezVrasta/ark-server-tools/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/FezVrasta/ark-server-tools/issues/104/comments","events_url":"https://api.github.com/repos/FezVrasta/ark-server-tools/issues/104/events","html_url":"https://github.com/FezVrasta/ark-server-tools/issues/104","id":94146415,"number":104,"title":"safeupdate?","user":{"login":"Sispheor","id":2573405,"avatar_url":"https://avatars.githubusercontent.com/u/2573405?v=3","gravatar_id":"","url":"https://api.github.com/users/Sispheor","html_url":"https://github.com/Sispheor","followers_url":"https://api.github.com/users/Sispheor/followers","following_url":"https://api.github.com/users/Sispheor/following{/other_user}","gists_url":"https://api.github.com/users/Sispheor/gists{/gist_id}","starred_url":"https://api.github.com/users/Sispheor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sispheor/subscriptions","organizations_url":"https://api.github.com/users/Sispheor/orgs","repos_url":"https://api.github.com/users/Sispheor/repos","events_url":"https://api.github.com/users/Sispheor/events{/privacy}","received_events_url":"https://api.github.com/users/Sispheor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/FezVrasta/ark-server-tools/labels/Enhancement","name":"Enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/FezVrasta/ark-server-tools/milestones/3","html_url":"https://github.com/FezVrasta/ark-server-tools/milestones/RCON%20Features","labels_url":"https://api.github.com/repos/FezVrasta/ark-server-tools/milestones/3/labels","id":1181022,"number":3,"title":"RCON Features","description":"ARK Server Tools release to implement commands once RCON is added by ARK devs","creator":{"login":"FezVrasta","id":5382443,"avatar_url":"https://avatars.githubusercontent.com/u/5382443?v=3","gravatar_id":"","url":"https://api.github.com/users/FezVrasta","html_url":"https://github.com/FezVrasta","followers_url":"https://api.github.com/users/FezVrasta/followers","following_url":"https://api.github.com/users/FezVrasta/following{/other_user}","gists_url":"https://api.github.com/users/FezVrasta/gists{/gist_id}","starred_url":"https://api.github.com/users/FezVrasta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FezVrasta/subscriptions","organizations_url":"https://api.github.com/users/FezVrasta/orgs","repos_url":"https://api.github.com/users/FezVrasta/repos","events_url":"https://api.github.com/users/FezVrasta/events{/privacy}","received_events_url":"https://api.github.com/users/FezVrasta/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":1,"state":"open","created_at":"2015-06-25T13:38:48Z","updated_at":"2015-07-10T03:15:11Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-07-09T20:34:08Z","updated_at":"2015-07-10T11:34:49Z","closed_at":null,"body":"safeupdate: Wait for server to perform world save and update.\r\nReferenced in the help command but does not really exist.\r\n \r\nAnd I think the update should do a world save every time. safeupdate == update"},"comment":{"url":"https://api.github.com/repos/FezVrasta/ark-server-tools/issues/comments/120390172","html_url":"https://github.com/FezVrasta/ark-server-tools/issues/104#issuecomment-120390172","issue_url":"https://api.github.com/repos/FezVrasta/ark-server-tools/issues/104","id":120390172,"user":{"login":"FezVrasta","id":5382443,"avatar_url":"https://avatars.githubusercontent.com/u/5382443?v=3","gravatar_id":"","url":"https://api.github.com/users/FezVrasta","html_url":"https://github.com/FezVrasta","followers_url":"https://api.github.com/users/FezVrasta/followers","following_url":"https://api.github.com/users/FezVrasta/following{/other_user}","gists_url":"https://api.github.com/users/FezVrasta/gists{/gist_id}","starred_url":"https://api.github.com/users/FezVrasta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FezVrasta/subscriptions","organizations_url":"https://api.github.com/users/FezVrasta/orgs","repos_url":"https://api.github.com/users/FezVrasta/repos","events_url":"https://api.github.com/users/FezVrasta/events{/privacy}","received_events_url":"https://api.github.com/users/FezVrasta/received_events","type":"User","site_admin":false},"created_at":"2015-07-10T11:34:49Z","updated_at":"2015-07-10T11:34:49Z","body":"Why do you say so?\r\n\r\n```\r\n#\r\n# Waits for server to perform save before update (until save file is newer than 1 minute)\r\n#\r\nsafeUpdate(){\r\n  cd \"$arkserverroot\"\r\n  \r\n  if isUpdateNeeded; then\r\n    while [ ! `find $arkserverroot/ShooterGame/Saved/SavedArks -mmin -1 -name $serverMap.ark` ]; do\r\n\t  echo \"`timestamp`: Save file older than 1 minute. Delaying update.\" >> \"$logdir/update.log\"\r\n\t  sleep 30s\r\n    done\r\n    echo \"`timestamp`: Save file newer than 1 minute. Performing an update.\" >> \"$logdir/update.log\"\r\n    forceUpdate\r\n  else\r\n    echo \"Your server is already up to date! The most recent version is ${bnumber}.\"\r\n    echo \"`timestamp`: No update needed.\" >> \"$logdir/update.log\"\r\n  fi\r\n}\r\n```\r\n\r\nThis is the safeupdate feature."}}