Commit 80ea7df2 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack k3s.sh: fix unitdir (for systemd services)

parent 7ed83075
......@@ -18,8 +18,11 @@ subst '1iConflicts: kubernetes-client' $SPEC
# Check https://get.k3s.io/
mkdir -p usr/lib/systemd/system/
cat >usr/lib/systemd/system/k3s.service << EOF
UNITDIR=/lib/systemd/system/
[ -d "$UNITDIR" ] || UNITDIR=/usr/lib/systemd/system/
mkdir -p .$UNITDIR
cat >.$UNITDIR/k3s.service << EOF
[Unit]
Description=Lightweight Kubernetes
Documentation=https://k3s.io
......@@ -51,7 +54,7 @@ ExecStart=/usr/bin/k3s server
EOF
pack_file /usr/lib/systemd/system/k3s.service
pack_file $UNITDIR/k3s.service
mkdir -p etc/systemd/system/
cat >etc/systemd/system/k3s.service.env << EOF
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment