Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
80ea7df2
Commit
80ea7df2
authored
May 31, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm repack k3s.sh: fix unitdir (for systemd services)
parent
7ed83075
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
k3s.sh
repack.d/k3s.sh
+6
-3
No files found.
repack.d/k3s.sh
View file @
80ea7df2
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment