systemd/lsb.service

15 lines
508 B
SYSTEMD
Raw Permalink Normal View History

2024-03-10 14:34:52 +00:00
# 2024-03-04
[Unit]
Description=VM define env LSB Infos
Before=docker.service
[Service]
Type=oneshot
ExecStart=/usr/bin/bash -c 'echo "DISTRIBUTOR=$( lsb_release -a |grep \'Distributor ID:\' |awk \'{print $3}\' )" > /etc/env/lsb'
ExecStart=/usr/bin/bash -c 'echo "RELEASE=$( lsb_release -a |grep \'Release\' |awk \'{print $2}\' )" >> /etc/env/lsb'
ExecStart=/usr/bin/bash -c 'echo "CODENAME=$( lsb_release -a |grep \'Codename\' |awk \'{print $2}\' )" >> /etc/env/lsb'
[Install]
WantedBy=multi-user.target