2023-05-07 19:59:07 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
id -u reminder &>/dev/null || useradd -r -M reminder
|
|
|
|
|
2023-06-13 09:40:04 +00:00
|
|
|
if [ ! -f '/etc/reminder-rs/config.env' ]; then
|
|
|
|
echo "Copying configuration file..."
|
2023-05-07 19:59:07 +00:00
|
|
|
cp /etc/reminder-rs/default.env /etc/reminder-rs/config.env
|
|
|
|
fi
|
|
|
|
|
|
|
|
chown reminder /etc/reminder-rs/config.env
|
|
|
|
|
|
|
|
#DEBHELPER#
|