initial
This commit is contained in:
14
lsb.service
Normal file
14
lsb.service
Normal file
@ -0,0 +1,14 @@
|
||||
# 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
|
Reference in New Issue
Block a user