summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatheus Gabriel Werny de Lima2021-02-26 11:58:27 +0100
committerMatheus Gabriel Werny de Lima2021-02-26 11:58:27 +0100
commitb52afc1881ae91b771a948dbadc5bc1f0d0b9a96 (patch)
tree193bf7e25da78006df7258054a095d92f962327b
parentcdc1eac5151c93c49ec942a6bd2d644f1d391110 (diff)
downloadaur-b52afc1881ae91b771a948dbadc5bc1f0d0b9a96.tar.gz
Update.
-rwxr-xr-xPKGBUILD8
1 files changed, 4 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index d89dd47f0b0..a9c3c6246c3 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -74,13 +74,13 @@ package()
cp -r ${srcdir}/${_pkgname}/ ${pkgdir}/usr/lib/
# Symlinking run.sh to /usr/bin/${_pkgname_lc}.
- ln -rTsf ${pkgdir}/usr/lib/${_pkgname}/run.sh ${pkgdir}/usr/bin/${_pkgname_lc}
+ ln -s ${pkgdir}/usr/lib/${_pkgname}/run.sh ${pkgdir}/usr/bin/${_pkgname_lc}
chmod 755 ${pkgdir}/usr/bin/${_pkgname_lc}
- # Install the systemd service.
+ # Install the systemd service and enable necessary services.
install -Dm644 ${pkgdir}/usr/lib/${_pkgname}/${_pkgname_lc}.service ${pkgdir}/usr/lib/systemd/system/
- sudo systemctl enable bitcoind.service
- sudo systemctl enable ${_pkgname_lc}.service
+ ln -sf ${pkgdir}/usr/lib/systemd/system/bitcoind.service ${pkgdir}/etc/systemd/system/multi-user.target.wants/
+ ln -sf ${pkgdir}/usr/lib/systemd/system/${_pkgname_lc}.service ${pkgdir}/etc/systemd/system/multi-user.target.wants/
# Install the documentation.
install -Dm644 ${pkgdir}/usr/lib/${_pkgname}/README.md ${pkgdir}/usr/share/doc/${_pkgname}/