forked from coop-cloud/authentik
add customize command to change background and logo
This commit is contained in:
parent
5416fe7a7b
commit
d5caa67384
12
README.md
12
README.md
@ -24,4 +24,16 @@
|
|||||||
* `abra app config <app-name>`
|
* `abra app config <app-name>`
|
||||||
* `abra app deploy <app-name>`
|
* `abra app deploy <app-name>`
|
||||||
|
|
||||||
|
## Customization
|
||||||
|
|
||||||
|
Run this command after every deploy/upgrade:
|
||||||
|
|
||||||
|
`abra app command --local <app-name> customize <assets_path>`
|
||||||
|
|
||||||
|
This command replaces the background image, the logo and the favicon with the following files placed in the `<assets_path>` directory:
|
||||||
|
* `flow_background.jpg`
|
||||||
|
* `icon_left_brand.svg`
|
||||||
|
* `icon.png`
|
||||||
|
|
||||||
|
|
||||||
For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech).
|
For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech).
|
||||||
|
24
abra.sh
24
abra.sh
@ -1,2 +1,26 @@
|
|||||||
export CUSTOM_CSS_VERSION=v2
|
export CUSTOM_CSS_VERSION=v2
|
||||||
export CUSTOM_FLOWS_VERSION=v1
|
export CUSTOM_FLOWS_VERSION=v1
|
||||||
|
|
||||||
|
customize() {
|
||||||
|
if [ -z "$1" ]
|
||||||
|
then
|
||||||
|
echo "Usage: ... customize <assets_path>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
# TODO: use env to specify source and target files
|
||||||
|
if [ -e $1/flow_background.jpg ]
|
||||||
|
then
|
||||||
|
echo copy flow_background.jpg
|
||||||
|
abra app cp $APP_NAME $1/flow_background.jpg app:/web/dist/assets/images/
|
||||||
|
fi
|
||||||
|
if [ -e $1/icon_left_brand.svg ]
|
||||||
|
then
|
||||||
|
echo copy icon_left_brand.svg
|
||||||
|
abra app cp $APP_NAME $1/icon_left_brand.svg app:/web/dist/assets/icons/
|
||||||
|
fi
|
||||||
|
if [ -e $1/icon.png ]
|
||||||
|
then
|
||||||
|
echo copy icon.png
|
||||||
|
abra app cp $APP_NAME $1/icon.png app:/web/dist/assets/icons/
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user