Add custom motd
This commit is contained in:
parent
f013400c34
commit
018b2f7225
@ -31,5 +31,8 @@ RUN mkdir -p .scripts
|
||||
COPY --chown=designer:designer --chmod=755 scripts/* /home/designer/.scripts
|
||||
ENV PATH="/home/designer/.scripts:${PATH}"
|
||||
|
||||
# Add motd
|
||||
RUN echo "/home/designer/.bashrc" >> "custom_motd"
|
||||
|
||||
# Initialize the enviroment keeping container alive
|
||||
ENTRYPOINT ["start_desktop"]
|
||||
|
20
scripts/custom_motd
Normal file
20
scripts/custom_motd
Normal file
@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
cat << EOF
|
||||
__ __
|
||||
__ /\ \__ /\ \
|
||||
___ ____/\_\ ___ ____\ \ ,_\ __ ___\ \ \/'\ ____
|
||||
/ __`\ /',__\/\ \ /'___\ /',__\\ \ \/ /'__`\ /'___\ \ , < /',__\
|
||||
/\ \L\ \/\__, `\ \ \/\ \__/ /\__, `\\ \ \_/\ \L\.\_/\ \__/\ \ \\`\ /\__, `\
|
||||
\ \____/\/\____/\ \_\ \____\ \/\____/ \ \__\ \__/.\_\ \____\\ \_\ \_\/\____/
|
||||
\/___/ \/___/ \/_/\/____/ \/___/ \/__/\/__/\/_/\/____/ \/_/\/_/\/___/
|
||||
|
||||
EOF
|
||||
|
||||
if [[ -z "${PDK} "]]
|
||||
cat << EOF
|
||||
There is not an active PDK, Use:
|
||||
volare_set_latest <pdk_variant>
|
||||
to automatically download and configure the latest version of a PDK.
|
||||
You can also manually configure a PDK using volare and setting the PDK environment variable
|
||||
EOF
|
||||
fi
|
@ -1,2 +1,3 @@
|
||||
#!/bin/bash
|
||||
setwallpaper /home/designer/.media/defaultwallpaper.png
|
||||
xfce4-terminal
|
@ -1,4 +1,5 @@
|
||||
#!/bin/bash
|
||||
if [[ -z "$1"]]; then PDK=$1 fi
|
||||
if [[ -z "${PDK}" ]]; then
|
||||
PDK_VERSION=$(volare ls-remote --pdk $PDK | sed -n '1 p')
|
||||
volare enable --pdk $PDK $PDK_VERSION
|
||||
|
Loading…
Reference in New Issue
Block a user