PHRAS-3821 chown re-organistion between setup and fpm and worker- wip (#4261)

PHRAS-3821 : chown are now only executed by "setup" container
This commit is contained in:
Nicolas Maillat
2023-03-08 17:30:33 +01:00
committed by GitHub
parent e303d34f71
commit 1f1d3b901e
3 changed files with 32 additions and 21 deletions

View File

@@ -41,15 +41,15 @@ fi
./docker/phraseanet/plugins/console init
rm -Rf cache/*
# rm -Rf cache/*
chown -R app:app \
cache \
config \
tmp \
logs \
www
#chown -R app:app \
# cache \
# config \
# tmp \
# logs \
# www
if [ -d "plugins/" ];then

View File

@@ -201,23 +201,33 @@ if [[ -f "$FILE" && $PHRASEANET_SETUP = 1 ]]; then
echo `date +"%Y-%m-%d %H:%M:%S"` " - config/configuration.yml update by Phraseanet entrypoint.sh Finished !"
fi
echo `date +"%Y-%m-%d %H:%M:%S"` " - Init plugin install "
./docker/phraseanet/plugins/console init
echo `date +"%Y-%m-%d %H:%M:%S"` " - Flushing application cache"
rm -Rf cache/*
echo `date +"%Y-%m-%d %H:%M:%S"` " - chown APP:APP on cache/ repositorie"
chown -R app:app cache
chown -R app:app \
cache \
config \
tmp \
logs \
www
echo `date +"%Y-%m-%d %H:%M:%S"` " - chown APP:APP on config/ repositorie"
chown -R app:app config
echo `date +"%Y-%m-%d %H:%M:%S"` " - chown APP:APP on tmp/ repositorie"
chown -R app:app tmp
echo `date +"%Y-%m-%d %H:%M:%S"` " - chown APP:APP on logs/ repositorie"
chown -R app:app logs
echo `date +"%Y-%m-%d %H:%M:%S"` " - chown APP:APP on www/ repositorie"
chown -R app:app www
echo `date +"%Y-%m-%d %H:%M:%S"` " - End of chown!"
if [ -d "plugins/" ];then
chown -R app:app plugins;
fi
#chown -R app:app datas && echo `date +"%Y-%m-%d %H:%M:%S"` " - Finished chown on datas by entrypoint" &
echo `date +"%Y-%m-%d %H:%M:%S"` " - End of Phraseanet setup entrypoint.sh"
if [[ $PHRASEANET_MAINTENANCE = 2 ]];then

View File

@@ -21,15 +21,16 @@ if [ ${XDEBUG_ENABLED} == "1" ]; then
fi
./docker/phraseanet/plugins/console init
rm -Rf cache/*
# rm -Rf cache/*
chown -R app:app \
cache \
config \
tmp \
logs \
www
#chown -R app:app \
# cache \
# config \
# tmp \
# logs \
# www
if [ -d "plugins/" ];then