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.
|
# from leaking to stdout.
|
||||||
set +x
|
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.
|
# Set the location to the repository and package database.
|
||||||
pkg_db=var/db/kiss/installed
|
pkg_db=var/db/kiss/installed
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue