initial
This commit is contained in:
13
host.service
Normal file
13
host.service
Normal file
@ -0,0 +1,13 @@
|
||||
# 2024-03-04
|
||||
|
||||
[Unit]
|
||||
Description=VM define env (host)NAME
|
||||
Before=docker.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/bash -c 'echo "NAME=$(cat /etc/hostname)" > /etc/env/host'
|
||||
ExecStart=/usr/bin/bash -c 'NAME=$(cat /etc/hostname) && echo "TITLE=$(tr \'[:lower:]\' \'[:upper:]\' <<< ${NAME:0:1})${NAME:1}" >> /etc/env/host'
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user