1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-28 21:32:36 +01:00

fix: fix for #61

This commit is contained in:
aclist 2023-05-07 04:39:16 +09:00
parent c7c93558ae
commit 0cb21d9939
2 changed files with 6 additions and 2 deletions

View file

@ -6,6 +6,10 @@
- Custom query API
- Store favorites by IP
## [3.2.5] 2023-05-07
### Fixed
- Require sudo when checking vm map count
## [3.2.4] 2023-03-01
### Fixed
- BM API returning stale query port and preventing fetching modlist

View file

@ -1,7 +1,7 @@
#!/bin/bash
set -o pipefail
version=3.2.4
version=3.2.5
aid=221100
game="dayz"
@ -1724,7 +1724,7 @@ setup(){
check_map_count(){
count=1048576
echo "[DZGUI] Checking system map count"
if [[ $(sysctl -q vm.max_map_count | awk -F"= " '{print $2}') -lt $count ]]; then
if [[ $(sudo sysctl -q vm.max_map_count | awk -F"= " '{print $2}') -lt $count ]]; then
$steamsafe_zenity --question --width 500 --title="DZGUI" --text "System map count must be $count or higher to run DayZ with Wine.\nIncrease map count and make this change permanent? (will prompt for sudo password)" 2>/dev/null
if [[ $? -eq 0 ]]; then
pass=$($steamsafe_zenity --password)