dugout-> operator_update_instance.dugout
Update an old user to a new user via the HPOINTER
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/sh
###############################################################################
## COPYRIGHT (C) 2020-2026 NEW ENTITY OPERATIONS INC. ALL RIGHTS RESERVED
## INSTANCE: operator_update_instance.dugout
## MODIFIED: 2026/04/20
## OVERVIEW: change OLD_USER="" to OLD_USER="**YOUR_OLD_USER_HERE**"
## and make sure that you run operator_update_instance.dugout as the user so
## you also update directories and cleanse stale files (use caution)
##
## The cleanse/system.sh script can run and take variables generated here to
## set new pointer variables in /home/.HPOINTER*X* which can keep an index of
## auto incremented old system users. The HOME POINTER (HPOINTER) can then
## be used as a slug to forward requests to a previous user account
###############################################################################
# System changes: Manual (should be updated accordingly)
###############################################################################
# OLD_USER-> If you're not updating an account make sure to keep OLD_USER
# to =""
SLUG_DEFAULT_CLEANSE_MAKER="${CONFIGURATION_EXECUTABLE_DEFAULT_CLEANSE_MAKER}"
OLD_USER="${CONFIGURATION_OLD_USER}"
PATH_HOME_DIRECTORY="${CONFIGURATION_PATH_HOME_DIRECTORY}"
# Define the AUDIT* slugs
AUDIT_BLOCK_FILE="${CONFIGURATION_AUDIT_BLOCK_FILE}"
# Define a HOME POINTER LOCATION (HPL) - USED as a DYNAMIC HOME LINK (DHL)
IMPLEMENT_NEW_USER="${CONFIGURATION_IMPLEMENT_NEW_USER}"
###############################################################################
# System changes: Static (don't change the convention)
###############################################################################
OLD_USER_HOME="${PATH_HOME_DIRECTORY}/${OLD_USER}"
HPL="${PATH_HOME_DIRECTORY}/${IMPLEMENT_NEW_USER}"
if [ -z "${OLD_USER}" ]; then
## Set to no user if $OLD_USER is empty
# export this user to the CLEANSE_USER instance for cleanse_system.dugout
export CLEANSE_USER="${CONFIGURATION_USER_NO_USER_SELECTED}"
export OLD_USER_HOME="${CONFIGURATION_USER_NO_OLD_HOME}"
elif [ "${OLD_USER}" = "NOT_PROVIDED" ]; then
## becomes no user, even if it's not provided
export CLEANSE_USER="${CONFIGURATION_USER_NO_USER_SELECTED}"
export OLD_USER_HOME="${CONFIGURATION_USER_NO_OLD_HOME}"
else
# export this user to the CLEANSE_USER instance for cleanse_system.dugout
export CLEANSE_USER="${OLD_USER}"
export OLD_USER_HOME="${PATH_HOME_DIRECTORY}/${OLD_USER}"
fi
# export the defiend HPL pointer (Home Pointer Location)
export USER_NEW="${HPL}"
# provide a current $USER HPL
export HPL_CURRENT_USER="${PATH_HOME_DIRECTORY}/${USER}"
# SLUG_CLEANSE_MAKER
export SLUG_CLEANSE_MAKER="${PATH_HOME_DIRECTORY}/${USER}/${SLUG_DEFAULT_CLEANSE_MAKER}"