cluster

Infrastructure files for Nordgedanken and Midnightthoughts.
git clone git://archive.git.mtrnord.blog/MTRNord/cluster.git
Log | Files | Refs | README

startup.sh (788B)


      1 #!/bin/bash
      2 
      3 WP_CONFIG="/var/www/html/wordpress/wp-config.php"
      4 
      5 sed -i "s/\${DB_NAME}/${DB_NAME}/g" $WP_CONFIG
      6 sed -i "s/\${DB_USER}/${DB_USER}/g" $WP_CONFIG
      7 sed -i "s/\${DB_PASSWORD}/${DB_PASSWORD}/g" $WP_CONFIG
      8 sed -i "s/\${DB_HOST}/${DB_HOST}/g" $WP_CONFIG
      9 sed -i "s/\${AUTH_KEY}/${AUTH_KEY}/g" $WP_CONFIG
     10 sed -i "s/\${SECURE_AUTH_KEY}/${SECURE_AUTH_KEY}/g" $WP_CONFIG
     11 sed -i "s/\${LOGGED_IN_KEY}/${LOGGED_IN_KEY}/g" $WP_CONFIG
     12 sed -i "s/\${NONCE_KEY}/${NONCE_KEY}/g" $WP_CONFIG
     13 sed -i "s/\${AUTH_SALT}/${AUTH_SALT}/g" $WP_CONFIG
     14 sed -i "s/\${SECURE_AUTH_SALT}/${SECURE_AUTH_SALT}/g" $WP_CONFIG
     15 sed -i "s/\${LOGGED_IN_SALT}/${LOGGED_IN_SALT}/g" $WP_CONFIG
     16 sed -i "s/\${NONCE_SALT}/${NONCE_SALT}/g" $WP_CONFIG
     17 
     18 redis-server /redis.conf &
     19 service php8.4-fpm start
     20 nginx -g 'daemon off;'