makedeb-pkgs/ror-server/rorserver.install
2021-10-23 16:37:28 +02:00

19 lines
621 B
Bash

#!/bin/bash
post_install() {
# create user
useradd -s /bin/false rorserver
# create installation directories
mkdir -p /etc/rorserver
mkdir -p /var/log/rorserver
mkdir -p /var/run/rorserver
chown rorserver:rorserver -R /etc/rorserver
chown rorserver:rorserver -R /var/log/rorserver
chown rorserver:rorserver -R /var/run/rorserver
echo "example configuration added: /etc/rorserver/simple.cfg.example please configure this file to your likings and rename it to simple.cfg"
echo "after you have configured your server, you can start it with: \"/etc/init.d/rorserver start\""
}