summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authors7hoang2022-01-22 02:37:34 -0500
committers7hoang2022-01-22 03:29:58 -0500
commit1c11729a1301a25f33de7e20605e6288f8472266 (patch)
tree81c64af69658607b7771fb37d4cdf98c428f98fd
parent2107595095a5326d9cdd74ccffd577da3551a840 (diff)
downloadaur-1c11729a1301a25f33de7e20605e6288f8472266.tar.gz
Remove Database Files From Backup + Add Service File
The database files are never actually created when installing (or updating or removing) the package so there's no need to back them up. On the otherhand the service file (and the other files in the backuplist) are modifed or directly created by our package so it makes sense to back these up.
-rw-r--r--PKGBUILD2
1 files changed, 1 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index bd6a719444e7..7f35bdec9cda 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,7 +15,7 @@ optdepends=()
install=anki-sync-server.install
source=('git+https://github.com/ankicommunity/anki-sync-server.git')
md5sums=('SKIP')
-backup=(opt/anki-sync-server/{auth.db,collections.db,session.db} etc/nginx/nginx.conf etc/nginx/sites-available/{anki-sync-server-http, anki-sync-server-https})
+backup=(etc/nginx/nginx.conf etc/nginx/sites-available/{anki-sync-server-http,anki-sync-server-https} usr/lib/systemd/system/anki-sync-server.service)
_repo_dir_="$(basename ${source} | cut -f 1 -d '.')"
_anki_dir_="${_repo_dir_}/src"