MIN_TAGS="$1"
TAGS_USER="$2"
PATH_CONF_HOME=../home
+ PATH_USER_BIN="${PATH_USER_HOME}/.local/bin"
echo "\nSetting up root user's home directory."
copy_dirtree "${PATH_CONF_HOME}" '/root' ${MIN_TAGS} root
adduser --disabled-password --gecos "" "${USERNAME}"
usermod -a -G sudo "${USERNAME}"
copy_dirtree "${PATH_CONF_HOME}" "${PATH_USER_HOME}" ${MIN_TAGS} ${TAGS_USER}
- cd "${PATH_USER_HOME}/.local/bin"
+ mkdir -p "${PATH_USER_BIN}"
+ cd "${PATH_USER_BIN}"
ln -s ../../.plomlib.sh lib
cd -
chown -R "${USERNAME}:${USERNAME}" "${PATH_USER_HOME}"