mirror of
https://github.com/aclist/dztui.git
synced 2025-04-08 13:33:00 +02:00
Revert login method
This commit is contained in:
parent
319fd420a2
commit
788ee990a2
1 changed files with 3 additions and 2 deletions
5
dztui.sh
5
dztui.sh
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
version=0.4.0
|
version=0.3.4
|
||||||
release_url="https://raw.githubusercontent.com/aclist/dztui/main/dztui.sh"
|
release_url="https://raw.githubusercontent.com/aclist/dztui/main/dztui.sh"
|
||||||
aid=221100
|
aid=221100
|
||||||
game="dayz"
|
game="dayz"
|
||||||
|
@ -23,6 +23,7 @@ debug=0
|
||||||
#STEAMCMD CONFIG===========
|
#STEAMCMD CONFIG===========
|
||||||
auto_install_mods=1
|
auto_install_mods=1
|
||||||
steamcmd_user="steam"
|
steamcmd_user="steam"
|
||||||
|
steam_username="STEAMUSER"
|
||||||
staging_dir="/tmp"
|
staging_dir="/tmp"
|
||||||
#END STEAMCMD CONFIG=======
|
#END STEAMCMD CONFIG=======
|
||||||
|
|
||||||
|
@ -185,7 +186,7 @@ move_files(){
|
||||||
rm -r "$staging_dir"/steamapps
|
rm -r "$staging_dir"/steamapps
|
||||||
}
|
}
|
||||||
auto_mod_download(){
|
auto_mod_download(){
|
||||||
sudo -iu steam bash -c "$steamcmd_path +force_install_dir $staging_dir +login anonymous $(steamcmd_modlist) +quit" $steamcmd_user
|
sudo -iu steam bash -c "$steamcmd_path +force_install_dir $staging_dir +login $steam_username $(steamcmd_modlist) +quit" $steamcmd_user
|
||||||
[[ "$(ls -A $staging_dir/steamapps)" ]] && move_files || return 1
|
[[ "$(ls -A $staging_dir/steamapps)" ]] && move_files || return 1
|
||||||
}
|
}
|
||||||
find_steam_cmd(){
|
find_steam_cmd(){
|
||||||
|
|
Loading…
Reference in a new issue