Browse Source

creatre datadir if missing

pull/4633/head
Daniel Gibbs 12 months ago
parent
commit
98136667e3
No known key found for this signature in database GPG Key ID: 2076B128385E8C55
  1. 5
      lgsm/modules/core_modules.sh

5
lgsm/modules/core_modules.sh

@ -831,6 +831,11 @@ if [ ! -d "${lockdir}" ]; then
mkdir -p "${lockdir}"
fi
# Creates data dir if missing
if [ ! -d "${datadir}" ]; then
mkdir -p "${datadir}"
fi
# if $USER id missing set to whoami
if [ -z "${USER}" ]; then
USER="$(whoami)"

Loading…
Cancel
Save