0
0
Fork 0
mirror of https://git.verdigado.com/NB-Public/simple-wkd.git synced 2024-12-05 03:12:50 +01:00

package installer includes service now

This commit is contained in:
Willi Junga 2024-10-26 15:48:40 +02:00
parent 0c6354067a
commit 4ff4b90490
Signed by: willi.junga
GPG key ID: 91E50A0F474ACF82
2 changed files with 19 additions and 6 deletions

View file

@ -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
View 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