Skip to content

Commit 13e4765

Browse files
WordPress latest script changes
1 parent 9266c8e commit 13e4765

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

_common-files/opt/cloudstack/wp-setup.sh

+3
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ sed -i "s/\$domain/$dom/g" /etc/apache2/sites-available/001-default.conf
7272

7373
a2enconf block-xmlrpc >/dev/null 2>&1
7474

75+
wp plugin install wp-fail2ban --allow-root --path="/var/www/html"
76+
wp plugin activate wp-fail2ban --allow-root --path="/var/www/html"
77+
7578
chown -Rf www-data.www-data /var/www/
7679

7780
systemctl restart apache2

wordpress-20-04/wordpress.yaml

-6
Original file line numberDiff line numberDiff line change
@@ -297,12 +297,6 @@
297297
dest: /usr/bin/wp
298298
mode: '0755'
299299

300-
- name: Installating fail2ban Plugin
301-
shell: "{{ item }}"
302-
with_items:
303-
- wp plugin install wp-fail2ban --allow-root --path="/var/www/html"
304-
- wp plugin activate wp-fail2ban --allow-root --path="/var/www/html"
305-
306300
- name: Installing postfix
307301
apt:
308302
name: [ 'postfix' , 'mailutils' ]

0 commit comments

Comments
 (0)