wip trying to launch worpdress
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
## install wordpress with cli : https://make.wordpress.org/cli/handbook/how-to-install/
|
||||
# install wordpress with cli : https://make.wordpress.org/cli/handbook/how-to-install/
|
||||
mkdir -p ${WP_DIR}
|
||||
wp core download --path="${WP_DIR}" --allow-root
|
||||
|
||||
## create config file :
|
||||
# create config file :
|
||||
wp config create \
|
||||
--dbhost=mariadb \
|
||||
--dbname="${DB_NAME}" \
|
||||
@@ -12,7 +12,7 @@ wp config create \
|
||||
--dbpass="${DB_PASS}" \
|
||||
--path="${WP_DIR}" --allow-root
|
||||
|
||||
## install wordpress :
|
||||
# install wordpress :
|
||||
wp core install \
|
||||
--url="${WP_URL}" \
|
||||
--title="${WP_TITLE}" \
|
||||
@@ -22,11 +22,13 @@ wp core install \
|
||||
--skip-email \
|
||||
--path="${WP_DIR}" --allow-root
|
||||
|
||||
## create user :
|
||||
# create user :
|
||||
wp user create \
|
||||
"${WP_USER}" "${WP_USER_EMAIL}" \
|
||||
--user_pass="${WP_USER_PSWD}" \
|
||||
--path="${WP_DIR}" --allow-root
|
||||
|
||||
# change owner and permissions to wp files
|
||||
chown -R www-data:www-data /var/www/*
|
||||
chmod 755 -R /var/www/*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user