initial commit
This commit is contained in:
16
image-entry.d/75-adjust-core-user.sh
Executable file
16
image-entry.d/75-adjust-core-user.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
set -f
|
||||
|
||||
. /run/ngx/iep/00-common.envsh
|
||||
|
||||
conf=/run/ngx/conf/autoconf/core-user.conf
|
||||
|
||||
if [ "${IEP_ROOT}" = 1 ] ; then
|
||||
log "Running as root, no need to adjust configuration"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
log_always "Running as non-root, adjusting configuration"
|
||||
rm -fv "${conf}"
|
||||
|
||||
exit 0
|
Reference in New Issue
Block a user