From 0c13ad296fc2c163f0b2ed0a338df4337f9b27c0 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Sat, 15 Aug 2020 15:32:10 +0300 Subject: [PATCH] fix 'find: Failed to restore initial working directory' --- SOURCES/main/kf2-srv | 4 ++-- SPECS/kf2-srv.spec | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) 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.