- in notes : added duplicator infos

- in wp dockerfil : added php7-session
- in wp entrypoint : mv creation of plugins symlinks outside
  "if wp is installed" block
This commit is contained in:
asus
2024-02-13 22:09:51 +01:00
parent 2a01db5a88
commit c65e1fd039
3 changed files with 13 additions and 6 deletions

View File

@@ -16,6 +16,7 @@ RUN apk update && apk add \
php7-zip \
php7-dom \
php7-curl \
php7-session \
\
mariadb-client \
curl \

View File

@@ -58,18 +58,20 @@ then
chown -R www-data:www-data /var/www/*
chmod 755 -R /var/www/*
echo -e ${YELLOW}plugins...${RESET}
plugins=$(ls ${WP_VOLUME_PLUGINS})
for dir in $plugins; do
ln -s ${WP_VOLUME_PLUGINS}/$dir ${WP_VOLUME_DIR}/wp-content/plugins/$dir
done
echo -e ${GREEN}done !${RESET}
else
echo -e ${GREEN}wp is installed${RESET}
fi
# installing plugins :
echo -e ${YELLOW}plugins...${RESET}
plugins=$(ls ${WP_VOLUME_PLUGINS})
for dir in $plugins; do
echo -e ${YELLOW}"creating symlink : ln -s ${WP_VOLUME_PLUGINS}/$dir ${WP_VOLUME_DIR}/wp-content/plugins/"${RESET}
ln -s ${WP_VOLUME_PLUGINS}/$dir ${WP_VOLUME_DIR}/wp-content/plugins/
done
# https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/
echo -e ${YELLOW}configuring the error logs...${RESET}
# Enable WP_DEBUG mode