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
e53df1e2
Commit
e53df1e2
authored
Jun 18, 2024
by
Ivan Mazhukin
Committed by
Vitaly Lipatov
Jul 19, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add yucca (eterbug #17437)
parent
dcc63356
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
91 additions
and
0 deletions
+91
-0
yucca.sh
pack.d/yucca.sh
+63
-0
yucca.sh
play.d/yucca.sh
+28
-0
No files found.
pack.d/yucca.sh
0 → 100755
View file @
e53df1e2
#!/bin/sh
TAR
=
"
$1
"
RETURNTARNAME
=
"
$2
"
VERSION
=
"
$3
"
.
$(
dirname
$0
)
/common.sh
# yucca_0.10.1_linux_amd64.tar.gz
erc unpack
$TAR
||
fatal
cd
yucca
*
mkdir
-p
opt/yucca/data
mv
yucca opt/yucca/
#systemd service
cat
<<
EOF
| create_file lib/systemd/system/yucca.service
[Unit]
Description=Yucca https://yucca.app
Documentation=https://docs.yucca.app
After=syslog.target network.target remote-fs.target nss-lookup.target
[Service]
Type=simple
User=yucca
Group=yucca
SyslogIdentifier=yucca
PIDFile=/run/yucca.pid
LimitNOFILE=1024
WorkingDirectory=/opt/yucca
ExecStart=/opt/yucca/yucca server --config /opt/yucca/yucca.toml
ExecStop=/bin/kill -s SIGTERM \
$MAINPID
Restart=on-failure
RestartSec=10s
[Install]
WantedBy=multi-user.target
EOF
#work user
cat
<<
EOF
| create_file lib/sysusers.d/yucca.conf
g yucca -
u yucca - "yucca" "/opt/yucca/data" "/bin/false"
EOF
#work permission's
cat
<<
EOF
| create_file lib/tmpfiles.d/yucca.conf
d /opt/yucca/data 2775 yucca yucca -
EOF
# gen epmty config yucca.conf if not exist
# if [ ! -f /opt/yucca/yucca.toml ];then
# ./opt/yucca/yucca server --config emtpy --show-config | sed 's|data_dir = ""|data_dir = "/opt/yucca/data"|' > opt/yucca/yucca.toml
# else
# cat /opt/yucca/yucca.toml > opt/yucca/yucca.toml
# fi
PKGNAME
=
$PRODUCT
-
$VERSION
erc pack
$PKGNAME
.tar opt lib
||
fatal
return_tar
$PKGNAME
.tar
play.d/yucca.sh
0 → 100755
View file @
e53df1e2
#!/bin/sh
PKGNAME
=
yucca
SUPPORTEDARCHES
=
"x86_64 armv7l aarch64"
VERSION
=
"
$2
"
DESCRIPTION
=
"Simple solution for video surveillance"
URL
=
"https://yucca.app/"
.
$(
dirname
$0
)
/common.sh
case
$(
epm print info
-a
)
in
x86_64
)
arch
=
amd64
;;
armv7l
)
arch
=
arm
;;
aarch64
)
arch
=
arm64
;;
*
)
fatal
"Unsupported arch
$arch
for
$(
epm print info
-d
)
"
esac
if
[
"
$VERSION
"
=
"*"
]
;
then
VERSION
=
$(
eget
--list
--latest
"https://docs.yucca.app/releases/"
|
grep
-oP
'v\K[0-9]+\.[0-9]+\.[0-9]+'
)
fi
PKGURL
=
"https://releases.yucca.app/v
${
VERSION
}
/yucca_
${
VERSION
}
_linux_
${
arch
}
.tar.gz"
install_pack_pkgurl
$VERSION
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