- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user