From fda350260ed275fe0f91fab2b358b2b318e90416 Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Sun, 22 May 2016 00:24:29 +0200 Subject: [PATCH] Auto update --- conf/wp-config.php | 5 +++++ scripts/upgrade | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/conf/wp-config.php b/conf/wp-config.php index d20f682..09742c6 100644 --- a/conf/wp-config.php +++ b/conf/wp-config.php @@ -42,3 +42,8 @@ require_once(ABSPATH . 'wp-settings.php'); // Force https redirect //--PUBLIC--define('FORCE_SSL_ADMIN', true); + +// Auto update +define('WP_AUTO_UPDATE_CORE', 'minor'); +add_filter( 'auto_update_plugin', '__return_true' ); +add_filter( 'auto_update_theme', '__return_true' ); diff --git a/scripts/upgrade b/scripts/upgrade index 6047a48..e692149 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -49,13 +49,13 @@ if [[ "$admin_wordpress" = "" || "$is_public" = "" || "$language" = "" ]]; then fi # Décompresse la source -tar -x -f ../sources/wordpress.tar.gz +#tar -x -f ../sources/wordpress.tar.gz # Copie les fichiers sources -sudo cp -a wordpress/. "$final_path" +#sudo cp -a wordpress/. "$final_path" # Copie les fichiers additionnels ou modifiés. -sudo cp -a ../sources/ajouts/. "$final_path" +#sudo cp -a ../sources/ajouts/. "$final_path" # Et copie le fichier de config nginx -sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf +#sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf # Modifie les variables dans le fichier de configuration nginx @@ -111,5 +111,5 @@ sudo service nginx reload sudo yunohost app ssowatconf # wp-cli me semble un peu trop permissif... Il a terminé son travail... -sudo rm $final_path/wp-cli.phar +#sudo rm $final_path/wp-cli.phar