Merge pull request #278 into master
f7cefeddcontainer: lib_finance: allow non-root system user; print warning (Aaron Fiore)cc3226a5client: lib_env: allow non-root system user; print warning (Aaron Fiore)
This commit was merged in pull request #278.
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# docker-finance | modern accounting for the power-user
|
# docker-finance | modern accounting for the power-user
|
||||||
#
|
#
|
||||||
# Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
# Copyright (C) 2021-2026 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -31,7 +31,9 @@ source "${DOCKER_FINANCE_CLIENT_REPO}/container/src/finance/lib/internal/lib_uti
|
|||||||
#
|
#
|
||||||
|
|
||||||
if [ $UID -lt 1000 ]; then
|
if [ $UID -lt 1000 ]; then
|
||||||
lib_utils::die_fatal "Do not run as root or system user!"
|
[ $UID -eq 0 ] \
|
||||||
|
&& lib_utils::die_fatal "Cannot run as root!" \
|
||||||
|
|| lib_utils::print_warning "Running as system user"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# docker-finance | modern accounting for the power-user
|
# docker-finance | modern accounting for the power-user
|
||||||
#
|
#
|
||||||
# Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
# Copyright (C) 2021-2026 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify
|
# This program is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -29,7 +29,9 @@ source "${DOCKER_FINANCE_CONTAINER_REPO}/src/finance/lib/internal/lib_utils.bash
|
|||||||
#
|
#
|
||||||
|
|
||||||
if [ $UID -lt 1000 ]; then
|
if [ $UID -lt 1000 ]; then
|
||||||
lib_utils::die_fatal "Do not run as root or system user!"
|
[ $UID -eq 0 ] \
|
||||||
|
&& lib_utils::die_fatal "Cannot run as root!" \
|
||||||
|
|| lib_utils::print_warning "Running as system user"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# IMPORTANT: keep umask for security
|
# IMPORTANT: keep umask for security
|
||||||
|
|||||||
Reference in New Issue
Block a user