diff --git a/SOURCES/main/kf2-srv b/SOURCES/main/kf2-srv index 019c104..f59fb8e 100755 --- a/SOURCES/main/kf2-srv +++ b/SOURCES/main/kf2-srv @@ -67,7 +67,7 @@ function run_as_steamuser () # $@: command shift 3; cmd_main "$@" elif [[ -n $(groups "$(whoami)" | grep -Fo 'wheel') ]] || [[ "$(whoami)" == "root" ]]; then export INC_LIBS="" - sudo -u "$SteamUser" "$@" + sudo -iu "$SteamUser" "$@" else echo "You must be a $SteamUser, root or sudo-user to run this command." fi @@ -79,7 +79,7 @@ function run_as_root () # $@: command shift 3; cmd_main "$@" elif [[ -n $(groups "$(whoami)" | grep -Fo 'wheel') ]]; then export INC_LIBS="" - sudo "$@" + sudo -i "$@" else echo "You must be root or sudo-user to run this command." fi diff --git a/SPECS/kf2-srv.spec b/SPECS/kf2-srv.spec index 8096bfa..95fa527 100644 --- a/SPECS/kf2-srv.spec +++ b/SPECS/kf2-srv.spec @@ -1,7 +1,7 @@ %global steamuser steam Name: kf2-srv -Version: 0.15.2 +Version: 0.15.3 Release: 1%{dist} Summary: Killing Floor 2 server Group: Amusements/Games @@ -101,7 +101,10 @@ if [[ $1 == 1 ]]; then # Install fi %changelog -* Fri Aug 14 2020 GenZmeY - 0.15.2-1 +* Sat Aug 15 2020 GenZmeY - 0.15.3-1 +- fix 'find: Failed to restore initial working directory'. + +* Sat Aug 15 2020 GenZmeY - 0.15.2-1 - fix bash completion for commands without parameters; - fix bash completion for use not existing command group.