mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
srload: Cleanup when running outside buildtree
The original syntax did not work and the initial intention, that root is always required is also false.
This commit is contained in:
+1
-4
@@ -14,10 +14,8 @@ source "$1"
|
||||
# optional env variable override
|
||||
if [ -n "$SYSREPOCTL_EXECUTABLE" ]; then
|
||||
SYSREPOCTL="$SYSREPOCTL_EXECUTABLE"
|
||||
elif [ "$(id -u)" -eq 0 ] && [ -n "$USER" ] && [ -n "$(command -v su)" ]; then
|
||||
SYSREPOCTL=$(command sysrepoctl -l "$USER")
|
||||
else
|
||||
SYSREPOCTL=$(command sysrepoctl)
|
||||
SYSREPOCTL=sysrepoctl
|
||||
fi
|
||||
|
||||
PERMS="660"
|
||||
@@ -91,7 +89,6 @@ enable()
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
# Skip first 5 lines of header and last 3 lines of footer
|
||||
SCTL_MODULES=$($SYSREPOCTL -l |tail -n +5 |head -n -3)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user