Commit Graph

10 Commits

Author SHA1 Message Date
black-desk d08a9655f8
fix: update upgrade-all script
Signed-off-by: black-desk <me@black-desk.cn>
2023-12-28 17:20:26 +08:00
black-desk d84b935d65
build: remove unused CMAKE option
Signed-off-by: black-desk <me@black-desk.cn>
2023-09-19 17:28:30 +08:00
black-desk 03b41991ae fix(scripts): correct command
Signed-off-by: black-desk <me@black-desk.cn>
2023-09-13 18:14:03 +08:00
black-desk 302385a3ff fix(scripts): ignore error in xargs
Related: linuxdeepin/developer-center#5561
Signed-off-by: black-desk <me@black-desk.cn>
2023-09-11 09:48:18 +08:00
black-desk 80d983ea39 feat: initial implementation of upgrade tool
1. add a script upgrade-all;
2. add a systemd user timer linglong-upgrade.timer;
3. add a systemd user service linglong-upgrade.service;
4. split misc/systemd/service to user and system;
5. update debian *.install.

Signed-off-by: black-desk <me@black-desk.cn>
2023-08-28 18:42:35 +08:00
black-desk a4d6511aef
chore: add SPDX-* comments to misc/*
Signed-off-by: black-desk <me@black-desk.cn>
2023-08-15 13:51:54 +08:00
Chen Linxuan fb170fd64f fix: do not chown LINGONG_ROOT if it has existed
We should not chown LINGONG_ROOT and LINGLONG_LOG_DIR if them has
existed.
2023-02-16 18:25:48 +08:00
Chen Linxuan 4364210d70 build: configurable static strings at compile time
This commit make

- The username of which user runs the linglong package manager;
- The location of linglong package manager store its data files;
- The location of linglong package manager put its log.

configurable at compile time
2023-02-16 10:54:07 +08:00
Chen Linxuan 2494c3faae refactor: do not create log dir in debian trigger.
We create log dir in create-linglong-dirs now.
2023-02-15 19:45:59 +08:00
Chen Linxuan dbefb9e1e5 refactor: create ostree repo in ll-package-manager
Now we create /var/lib/linglong and chown it to linglong user in
systemd service file. We add a script call create-linglong-dirs to do
this job.

As script might be installed to /usr/lib/linglong or
/usr/libexec/linglong. I just ignore the error.

Service files should be configured in cmake, let's fix this later.

OstreeRepoHelper has method ensureRepoEnv which will create the ostree
repo if it doesn't exist. This should be fine.

Update1: But we indeed have some codes open the ostree repo before call
OSTreeRepoHelper's ensureRepoEnv method. This commit include some quick
hack to fix this issue, which should be refactor later.

Update2: ensureRepoEnv use ostree_repo_new which does not create the
ostree repo if it not exist. This behavior is not match comment. So I
refactor this method to make it do the job it should have done.
2023-02-15 19:45:59 +08:00