Skip to content

Commit

Permalink
Propose a dead simple way to show systemd configuration
Browse files Browse the repository at this point in the history
while the local systemd version is too low to support `cat-config` function.
  • Loading branch information
IceCodeNew committed Oct 13, 2020
1 parent 7fef216 commit 7b5fe33
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions install-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ systemd_cat_config() {
if systemd-analyze --help | grep -qw 'cat-config'; then
systemd-analyze --no-pager cat-config "$@"
else
echo
cat "$@" "$1".d/*
echo "${red}warning: ${green}The systemd version on the current operating system is too low."
echo "${red}warning: ${green}Please consider to upgrade the systemd or the operating system.${reset}"
fi
Expand Down

0 comments on commit 7b5fe33

Please sign in to comment.