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 ./docker/phraseanet/plugins/console init
rm -Rf cache/* # rm -Rf cache/*
chown -R app:app \ #chown -R app:app \
cache \ # cache \
config \ # config \
tmp \ # tmp \
logs \ # logs \
www # www
if [ -d "plugins/" ];then 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 !" echo `date +"%Y-%m-%d %H:%M:%S"` " - config/configuration.yml update by Phraseanet entrypoint.sh Finished !"
fi fi
echo `date +"%Y-%m-%d %H:%M:%S"` " - Init plugin install "
./docker/phraseanet/plugins/console init ./docker/phraseanet/plugins/console init
echo `date +"%Y-%m-%d %H:%M:%S"` " - Flushing application cache"
rm -Rf 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 \ echo `date +"%Y-%m-%d %H:%M:%S"` " - chown APP:APP on config/ repositorie"
cache \ chown -R app:app config
config \
tmp \ echo `date +"%Y-%m-%d %H:%M:%S"` " - chown APP:APP on tmp/ repositorie"
logs \ chown -R app:app tmp
www
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 if [ -d "plugins/" ];then
chown -R app:app plugins; chown -R app:app plugins;
fi 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" echo `date +"%Y-%m-%d %H:%M:%S"` " - End of Phraseanet setup entrypoint.sh"
if [[ $PHRASEANET_MAINTENANCE = 2 ]];then if [[ $PHRASEANET_MAINTENANCE = 2 ]];then

View File

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