Remove useless backup of wp-config
[MAILPOET-3475]
This commit is contained in:
committed by
Jan Lysý
parent
67824f9eb1
commit
4a6e85bb04
@@ -25,13 +25,8 @@ chown www-data:www-data wp-content/uploads
|
|||||||
chmod 755 wp-content/plugins
|
chmod 755 wp-content/plugins
|
||||||
chmod -R 777 wp-content/uploads
|
chmod -R 777 wp-content/uploads
|
||||||
|
|
||||||
# backup original 'wp-config.php' created by WordPress image
|
|
||||||
if [ ! -f wp-config-original.php ]; then
|
|
||||||
cp wp-config.php wp-config-original.php
|
|
||||||
fi
|
|
||||||
|
|
||||||
# cleanup 'wp-config.php' and database
|
# cleanup database
|
||||||
rm -f wp-config.php && cp wp-config-original.php wp-config.php
|
|
||||||
mysqladmin --host=mysql --user=root --password=wordpress drop wordpress --force
|
mysqladmin --host=mysql --user=root --password=wordpress drop wordpress --force
|
||||||
mysqladmin --host=mysql --user=root --password=wordpress create wordpress --force
|
mysqladmin --host=mysql --user=root --password=wordpress create wordpress --force
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user