Skip to content

Commit 2598a17

Browse files
authored
move REDISPTXT
1 parent 58a73ff commit 2598a17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wordpress_install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ sed -i "s|post_max_size =.*|post_max_size = 110M|g" /etc/php/"$PHPVER"/fpm/php.i
195195
sed -i "s|cgi.fix_pathinfo =.*|cgi.fix_pathinfo=0|g" /etc/php/"$PHPVER"/fpm/php.ini
196196
sed -i "s|date.timezone =.*|date.timezone = Europe/Stockholm|g" /etc/php/"$PHPVER"/fpm/php.ini
197197

198+
# Make sure the passwords are the same, this file will be deleted when Redis is run.
199+
check_command echo "$REDIS_PASS" > $REDISPTXT
200+
198201
# Install Redis
199202
run_static_script redis-server-ubuntu
200203

@@ -312,9 +315,6 @@ define( 'WP_DEBUG', false );
312315
define( 'WP_MEMORY_LIMIT', '128M' );
313316
PHP
314317

315-
# Make sure the passwords are the same, this file will be deleted when Redis is run.
316-
check_command echo "$REDIS_PASS" > $REDISPTXT
317-
318318
# Install Wordpress
319319
check_command wp_cli_cmd core install --url=http://"$ADDRESS"/ --title=Wordpress --admin_user=$WPADMINUSER --admin_password="$WPADMINPASS" [email protected] --skip-email
320320
echo "WP PASS: $WPADMINPASS" > /var/adminpass.txt

0 commit comments

Comments
 (0)