Replies: 3 comments 7 replies
-
I'm assuming you are trying to do something similar to what was documented by @TheEpicSnowWolf here:
One way to do this is by using the Steps:
Below is an example shell script that downloads the css from the project mentioned above, and concatenates it onto the stylesheet file.
|
Beta Was this translation helpful? Give feedback.
-
Thank you. .home
└pi
└docker
└foundry
├── docker-compose.yml
├── custom.css
├── Config/
├── container_cache/
├── container_patches/patch_style_css.sh
├── Data/
└── Logs/ I added to docker-compose.yml: version: "3.8"
services:
foundry:
image: felddy/foundryvtt:9
hostname: my-domain
init: true
volumes:
- type: bind
source: /home/pi/docker/foundry
target: /data
environment:
- FOUNDRY_PASSWORD=foundry-pass
- FOUNDRY_USERNAME=my-ussername
- FOUNDRY_ADMIN_KEY=my-admin-key
- CONTAINER_PATCHES=/data/container_patches
ports:
- target: 30000
published: 30000
protocol: tcp
My patch_style_css.sh: #!/bin/sh
# Path to the CSS file
SOURCE="/home/pi/docker/foundry/custom.css"
# Which file to patch
DEST="/css/style.css"
# Temporary working directory
TMP_DIR=$(mktemp -d)
# Cleanup in case the script gets stopped prematurely
trap "rm -rf $TMP_DIR" 1 2 3 9 15
log "Adding custom CSS..."
log "$SOURCE -> $DEST"
# This is the important part. This command prints the
# original file ($DEST) and the CSS patch ($SOURCE), then
# it saves the output to a temporary file
cat $DEST $SOURCE > $TMP_DIR/style.css
log "Replacing file..."
# Once the temp file is ready, we need to move replace
# old file with the new and patched file
cp $TMP_DIR/style.css $DEST
log "Should be working now"
# Cleanup
rm -rf $TMP_DIR
and my CSS just for testing if it is work: #join-game #world-description {
display: none !important;
} |
Beta Was this translation helpful? Give feedback.
-
Thank you! I'm nearly there its kind of work. Entrypoint | 2022-04-26 16:51:07 | [info] /data/custom.css this line in my script is my file is: and if I check my folder tmp could you know how to sort this, please? |
Beta Was this translation helpful? Give feedback.
-
Could you help me add my own CCS file for Login screen please
how to ad it to yml script
Beta Was this translation helpful? Give feedback.
All reactions