forked from kiss-community/kiss
kiss: don't run as root
This commit is contained in:
parent
1376de2f31
commit
8240ae8fe0
4
kiss
4
kiss
@ -1139,6 +1139,10 @@ main() {
|
||||
# from leaking to stdout.
|
||||
set +x
|
||||
|
||||
# Prevent the package manager from running as root. The package
|
||||
# manager will elevate permissions where needed.
|
||||
[ "$(id -u)" != 0 ] || die "kiss must be run as a normal user"
|
||||
|
||||
# Set the location to the repository and package database.
|
||||
pkg_db=var/db/kiss/installed
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user