Compare commits
3 Commits
2.8.0+6.5.
...
main
Author | SHA1 | Date |
---|---|---|
Moritz | 7e4ff5c075 | |
3wc | 564db5b63f | |
Moritz | cf9b5f529e |
13
abra.sh
13
abra.sh
|
@ -8,6 +8,17 @@ wp() {
|
||||||
su -p www-data -s /bin/bash -c "/usr/local/bin/wp $@"
|
su -p www-data -s /bin/bash -c "/usr/local/bin/wp $@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
update() {
|
||||||
|
wp "core update-db"
|
||||||
|
wp "plugin update --all"
|
||||||
|
wp "plugin auto-updates enable --all"
|
||||||
|
wp "theme update --all"
|
||||||
|
wp "theme auto-updates enable --all"
|
||||||
|
wp "language core update"
|
||||||
|
wp "language plugin update --all"
|
||||||
|
wp "language theme update --all"
|
||||||
|
}
|
||||||
|
|
||||||
core_install(){
|
core_install(){
|
||||||
ADMIN=admin
|
ADMIN=admin
|
||||||
if [ -n "$AUTHENTIK_DOMAIN" ]
|
if [ -n "$AUTHENTIK_DOMAIN" ]
|
||||||
|
@ -27,6 +38,7 @@ core_install(){
|
||||||
else
|
else
|
||||||
wp "option set default_role subscriber"
|
wp "option set default_role subscriber"
|
||||||
fi
|
fi
|
||||||
|
wp "theme auto-updates enable --all"
|
||||||
wp 'plugin auto-updates enable --all' || exit 0
|
wp 'plugin auto-updates enable --all' || exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,6 +51,7 @@ set_authentik(){
|
||||||
fi
|
fi
|
||||||
wp "user create akadmin admin@example.com --role=administrator"
|
wp "user create akadmin admin@example.com --role=administrator"
|
||||||
wp "plugin install --activate daggerhart-openid-connect-generic"
|
wp "plugin install --activate daggerhart-openid-connect-generic"
|
||||||
|
wp 'plugin auto-updates enable daggerhart-openid-connect-generic'
|
||||||
wp "option update --format=json openid_connect_generic_settings '
|
wp "option update --format=json openid_connect_generic_settings '
|
||||||
{
|
{
|
||||||
\"login_type\":\"$LOGIN_TYPE\",
|
\"login_type\":\"$LOGIN_TYPE\",
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
authentik:
|
||||||
|
uncomment:
|
||||||
|
- compose.authentik.yml
|
||||||
|
- AUTHENTIK_DOMAIN
|
||||||
|
- SECRET_AUTHENTIK_SECRET_VERSION
|
||||||
|
- SECRET_AUTHENTIK_ID_VERSION
|
||||||
|
- LOGIN_TYPE
|
||||||
|
execute:
|
||||||
|
- app set_authentik
|
||||||
|
shared_secrets:
|
||||||
|
wordpress_secret: authentik_secret
|
||||||
|
wordpress_id: authentik_id
|
|
@ -3,7 +3,7 @@ version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: "wordpress:6.5.0"
|
image: "wordpress:6.5.3"
|
||||||
volumes:
|
volumes:
|
||||||
- "wordpress_content:/var/www/html/wp-content/"
|
- "wordpress_content:/var/www/html/wp-content/"
|
||||||
networks:
|
networks:
|
||||||
|
@ -60,7 +60,7 @@ services:
|
||||||
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
|
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
|
||||||
- "backupbot.backup=true"
|
- "backupbot.backup=true"
|
||||||
- "backupbot.backup.path=/var/www/html"
|
- "backupbot.backup.path=/var/www/html"
|
||||||
- "coop-cloud.${STACK_NAME}.version=2.8.0+6.5.0"
|
- "coop-cloud.${STACK_NAME}.version=2.9.1+6.5.3"
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: "mariadb:11.3"
|
image: "mariadb:11.3"
|
||||||
|
|
Loading…
Reference in New Issue