diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-08-08 03:38:47 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-08-08 23:11:34 +0200 |
commit | 9289e093ae6fd5484f9119e1ee07d1dffe37cd10 (patch) | |
tree | 245f88c410684e0d2622c82fb91b8fa60a8746fa /src/creds | |
parent | man: fix typo in journalctl (diff) | |
download | systemd-9289e093ae6fd5484f9119e1ee07d1dffe37cd10.tar.xz systemd-9289e093ae6fd5484f9119e1ee07d1dffe37cd10.zip |
meson: use install_emptydir() and drop meson-make-symlink.sh
The script is mostly equivalent to 'mkdir -p' and 'ln -sfr'.
Let's replace it with install_emptydir() builtin function and
inline meson call.
Diffstat (limited to 'src/creds')
-rw-r--r-- | src/creds/meson.build | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/creds/meson.build b/src/creds/meson.build index 905c349635..85572568f6 100644 --- a/src/creds/meson.build +++ b/src/creds/meson.build @@ -15,9 +15,11 @@ executables += [ # Protecting files from the distro in /usr doesn't make sense since they can be trivially accessed otherwise, # so don't restrict the access mode in /usr. That doesn't apply to /etc, so we do restrict the access mode # there. -meson.add_install_script('sh', '-c', mkdir_p.format(credstoredir)) +install_emptydir(credstoredir) if install_sysconfdir # Keep in sync with tmpfiles.d/credstore.conf - meson.add_install_script('sh', '-c', mkdir_p_mode.format(sysconfdir / 'credstore', '0700')) - meson.add_install_script('sh', '-c', mkdir_p_mode.format(sysconfdir / 'credstore.encrypted', '0700')) + install_emptydir(sysconfdir / 'credstore', + install_mode : 'rwx------') + install_emptydir(sysconfdir / 'credstore.encrypted', + install_mode : 'rwx------') endif |