diff --git a/Makefile b/Makefile index f208dad..7846728 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ PREFIX ?= /usr/local DIST := COPYING Makefile mtmediasrv.service mtmediasrv.yaml nginx-server.conf readme.md PROJECT := mtmediasrv -VERSION = 2 +VERSION = 3 BUILD = `git describe --tags --always` $(PROJECT): main.go diff --git a/mtmediasrv.conf b/mtmediasrv.conf new file mode 100644 index 0000000..30fc7c3 --- /dev/null +++ b/mtmediasrv.conf @@ -0,0 +1,2 @@ +# create folder for socket location for mtmediasrv +d /run/mtmediasrv 0755 httpd httpd - diff --git a/mtmediasrv.service b/mtmediasrv.service index dfff21c..3bdb221 100644 --- a/mtmediasrv.service +++ b/mtmediasrv.service @@ -2,11 +2,9 @@ Description=Minetest Media server [Service] -User=www +User=httpd Type=simple Restart=always -ExecStartPre=+/usr/bin/mkdir -p /run/mtmediasrv -ExecStartPre=+/usr/bin/chown www /run/mtmediasrv WorkingDirectory=/var/empty ExecStart=/usr/local/bin/mtmediasrv