Merge branch 'develop'
commit
2bdee2c0fd
18
dd-ctl
18
dd-ctl
|
@ -16,6 +16,7 @@ if [ -z "$OPERATION" ]; then
|
|||
echo " Apply customizations: ./dd-ctl customize"
|
||||
echo " Update SAML certificates: ./dd-ctl saml"
|
||||
echo " Upgrade plugins: ./dd-ctl upgrade-plugins"
|
||||
echo " Branding (custom/img, custom/menu): ./dd-ctl branding"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -334,6 +335,17 @@ upgrade_plugins_wp(){
|
|||
rm muplugins-google-sites-master -rf;'
|
||||
}
|
||||
|
||||
update_logos_and_menu(){
|
||||
cp custom/img/logo.png custom/system/keycloak/themes/liiibrelite/login/resources/img/
|
||||
cp custom/img/background.png custom/system/keycloak/themes/liiibrelite/login/resources/img/loginBG.png
|
||||
cp custom/img/background.png custom/system/keycloak/themes/liiibrelite/login/resources/img/loginBG2.png
|
||||
# docker exec -ti isard-sso-keycloak sh -c "/opt/jboss/keycloak/bin/jboss-cli.sh --connect --command='/subsystem=keycloak-server/theme=defaults/:write-attribute(name=cacheThemes,value=false)'"
|
||||
# docker exec -ti isard-sso-keycloak sh -c "/opt/jboss/keycloak/bin/jboss-cli.sh --connect --command='/subsystem=keycloak-server/theme=defaults/:write-attribute(name=cacheTemplates,value=false)'"
|
||||
# docker exec -ti isard-sso-keycloak sh -c "/opt/jboss/keycloak/bin/jboss-cli.sh --connect --command='/subsystem=keycloak-server/theme=defaults/:write-attribute(name=staticMaxAge,value=-1)'"
|
||||
docker exec -ti isard-sso-keycloak sh -c "/opt/jboss/keycloak/bin/jboss-cli.sh --connect --command='reload'"
|
||||
docker-compose build isard-sso-api && docker-compose up -d isard-sso-api
|
||||
}
|
||||
|
||||
if [ "$OPERATION" = "repo-update" ]; then
|
||||
update_repo
|
||||
fi
|
||||
|
@ -392,6 +404,12 @@ if [ "$OPERATION" = "all" ]; then
|
|||
echo " - ./dd-ctl customize"
|
||||
fi
|
||||
|
||||
if [ "$OPERATION" = "branding" ]; then
|
||||
up
|
||||
wait_for_moodle
|
||||
update_logos_and_menu
|
||||
fi
|
||||
|
||||
if [ "$OPERATION" = "upgrade-plugins" ]; then
|
||||
up
|
||||
wait_for_moodle
|
||||
|
|
Loading…
Reference in New Issue