re-added gestion for plugins volume outside folder

This commit is contained in:
asus
2024-02-06 11:24:05 +01:00
parent f43de228c6
commit 00473e1288
7 changed files with 45 additions and 10 deletions

View File

@@ -58,6 +58,12 @@ 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