|
@@ -24,14 +24,15 @@ cd "${rootdir}"
|
|
|
cd "steamcmd"
|
|
cd "steamcmd"
|
|
|
./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${filesdir}" +app_update "${appid}" validate +quit|tee -a "${scriptlog}"
|
|
./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${filesdir}" +app_update "${appid}" validate +quit|tee -a "${scriptlog}"
|
|
|
fn_scriptlog "Checking complete"
|
|
fn_scriptlog "Checking complete"
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
fn_check_root
|
|
fn_check_root
|
|
|
fn_check_systemdir
|
|
fn_check_systemdir
|
|
|
tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep -Ec "^${servicename}:")
|
|
tmuxwc=$(tmux list-sessions 2>&1|awk '{print $1}'|grep -v failed|grep -Ec "^${servicename}:")
|
|
|
if [ "${tmuxwc}" -eq 1 ]; then
|
|
if [ "${tmuxwc}" -eq 1 ]; then
|
|
|
- fn_stop
|
|
|
|
|
- fn_validation
|
|
|
|
|
- fn_start
|
|
|
|
|
|
|
+ fn_stop
|
|
|
|
|
+ fn_validation
|
|
|
|
|
+ fn_start
|
|
|
else
|
|
else
|
|
|
- fn_validation
|
|
|
|
|
|
|
+ fn_validation
|
|
|
fi
|
|
fi
|