1
0
mirror of https://github.com/inexio/thola.git synced 2026-10-24 03:08:55 +03:00
Files
thola/scripts/pre-install.sh
2021-04-12 18:11:00 +02:00

13 lines
230 B
Bash

#!/bin/bash
DATA_DIR=/var/lib/thola
USER=thola
if ! id thola &>/dev/null; then
useradd --system -U -M thola -s /bin/false -d $DATA_DIR
fi
if [ ! -d $DATA_DIR ]; then
mkdir -p $DATA_DIR
chown $USER:$USER $DATA_DIR
fi