Compare commits
3
Commits
3.0.6+7.0.4
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
66560cd209 | ||
|
|
6ff565428c | ||
|
|
3c0b4d2ebd |
@@ -38,6 +38,7 @@ LETS_ENCRYPT_ENV=production
|
|||||||
|
|
||||||
SECRET_DB_ROOT_PASSWORD_VERSION=v1
|
SECRET_DB_ROOT_PASSWORD_VERSION=v1
|
||||||
SECRET_DB_PASSWORD_VERSION=v1
|
SECRET_DB_PASSWORD_VERSION=v1
|
||||||
|
SECRET_ADMIN_PASSWORD_VERSION=v1
|
||||||
|
|
||||||
# Mostly for compatibility with existing database dumps...
|
# Mostly for compatibility with existing database dumps...
|
||||||
#WORDPRESS_TABLE_PREFIX=wp_
|
#WORDPRESS_TABLE_PREFIX=wp_
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ core_install(){
|
|||||||
ADMIN=akadmin
|
ADMIN=akadmin
|
||||||
fi
|
fi
|
||||||
chown www-data:www-data -R /var/www/html/wp-content
|
chown www-data:www-data -R /var/www/html/wp-content
|
||||||
wp "core install --url=$DOMAIN --title=\"$TITLE\" --admin_user=$ADMIN --admin_email=$ADMIN_EMAIL --locale=$LOCALE --skip-email"
|
wp "core install --url=$DOMAIN --title=\"$TITLE\" --admin_user=$ADMIN --admin_password=\"\$(cat /run/secrets/admin_password)\" --admin_email=$ADMIN_EMAIL --locale=$LOCALE --skip-email"
|
||||||
wp "language core install $LOCALE"
|
wp "language core install $LOCALE"
|
||||||
wp "site switch-language $LOCALE"
|
wp "site switch-language $LOCALE"
|
||||||
wp "rewrite structure '/%year%/%monthnum%/%day%/%postname%/'"
|
wp "rewrite structure '/%year%/%monthnum%/%day%/%postname%/'"
|
||||||
@@ -46,7 +46,7 @@ enable_auto_updates(){
|
|||||||
wp "plugin uninstall disable-update-notifications --allow-root"
|
wp "plugin uninstall disable-update-notifications --allow-root"
|
||||||
wp "option delete disable_notification_setting --allow-root"
|
wp "option delete disable_notification_setting --allow-root"
|
||||||
wp "plugin auto-updates enable --all --allow-root"
|
wp "plugin auto-updates enable --all --allow-root"
|
||||||
wp "theme auto-updates enable --all --allow-root"
|
wp "theme auto-updates enable --all --allow-root" || true
|
||||||
}
|
}
|
||||||
|
|
||||||
disable_auto_updates(){
|
disable_auto_updates(){
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ services:
|
|||||||
COMPOSER:
|
COMPOSER:
|
||||||
secrets:
|
secrets:
|
||||||
- db_password
|
- db_password
|
||||||
|
- admin_password
|
||||||
configs:
|
configs:
|
||||||
- source: php_uploads_conf
|
- source: php_uploads_conf
|
||||||
target: /usr/local/etc/php/conf.d/uploads.ini
|
target: /usr/local/etc/php/conf.d/uploads.ini
|
||||||
@@ -101,6 +102,9 @@ secrets:
|
|||||||
db_password:
|
db_password:
|
||||||
external: true
|
external: true
|
||||||
name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION}
|
name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION}
|
||||||
|
admin_password:
|
||||||
|
external: true
|
||||||
|
name: ${STACK_NAME}_admin_password_${SECRET_ADMIN_PASSWORD_VERSION}
|
||||||
|
|
||||||
configs:
|
configs:
|
||||||
entrypoint_conf:
|
entrypoint_conf:
|
||||||
|
|||||||
Reference in New Issue
Block a user