15 lines
508 B
SYSTEMD
15 lines
508 B
SYSTEMD
|
# 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
|