Skip to content

Commit

Permalink
Go another way around...
Browse files Browse the repository at this point in the history
Signed-off-by: Vitalii Koshura <[email protected]>
  • Loading branch information
AenBleidd committed Feb 27, 2024
1 parent 29350d3 commit 5b2ea08
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/debrepo/package_prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ function prepare_client() {
# prepare dir structure
mkdir -p usr/local/bin
exit_on_fail
mkdir -p etc/boinc-client etc/init.d
mkdir -p etc/boinc-client etc/default etc/init.d
exit_on_fail
mkdir -p usr/lib/systemd/system
exit_on_fail
mkdir -p var/lib/boinc
exit_on_fail
Expand All @@ -53,9 +55,9 @@ function prepare_client() {
exit_on_fail
mv boinc boinccmd usr/local/bin/
exit_on_fail
mv boinc-client.service DEBIAN/
mv boinc-client.service usr/lib/systemd/system/
exit_on_fail
mv boinc-client.conf DEBIAN/boinc-client.default
mv boinc-client.conf etc/default/boinc-client
exit_on_fail
mv boinc-client etc/init.d/
exit_on_fail
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/linux-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,9 @@ jobs:
set_perm ${BOINCDIR}/slots ${BOINCUSER} ${BOINCGROUP} 0775
update_nested_dirs ${BOINCDIR}/slots u+x,g+x,o+x
fi
if [ -x /bin/systemctl ] ; then
systemctl enable --now boinc-client.service
fi
%files
${PKG_FILELIST}
Expand Down
4 changes: 4 additions & 0 deletions packages/deb/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,7 @@ if [ -d ${BOINCDIR}/slots ] ; then
set_perm ${BOINCDIR}/slots ${BOINCUSER} ${BOINCGROUP} 0775
update_nested_dirs ${BOINCDIR}/slots u+x,g+x,o+x
fi

if [ -x /bin/systemctl ] ; then
systemctl enable --now boinc-client.service
fi

0 comments on commit 5b2ea08

Please sign in to comment.