mirror of
https://git.verdigado.com/NB-Public/simple-wkd.git
synced 2024-10-30 01:25:53 +01:00
package installer includes service now
This commit is contained in:
parent
0c6354067a
commit
4ff4b90490
2 changed files with 19 additions and 6 deletions
|
@ -1,8 +1,9 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
mkdir wkd
|
mkdir /srv/wkd
|
||||||
cp entrypoint.sh wkd
|
#cp entrypoint.sh /srv/wkd
|
||||||
cp example.config.toml wkd/config.toml
|
cp example.config.toml /srv/wkd/config.toml
|
||||||
cp -R assets wkd/assets
|
cp -R assets /srv/wkd/assets
|
||||||
cp simple-wkd-executable wkd/wkd
|
cp simple-wkd-executable /srv/wkd/wkd
|
||||||
|
cp wkd.service /etc/systemd/system/wkd.service
|
||||||
useradd --no-create-home wkd
|
useradd --no-create-home wkd
|
||||||
chown -R wkd:wkd wkd
|
chown -R wkd:wkd /srv/wkd
|
||||||
|
|
12
wkd.service
Normal file
12
wkd.service
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
[Unit]
|
||||||
|
Description=WKD Service
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=wkd
|
||||||
|
ExecStart=/srv/wkd/wkd
|
||||||
|
Restart=always
|
||||||
|
WorkingDirectory=/srv/wkd
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in a new issue