🎉 Added ror-server PKGBUILD

This commit is contained in:
2021-10-23 16:37:28 +02:00
parent 9aae808291
commit a4511b2178
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,18 @@
#!/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\""
}