chg: [vagrant] adjusted usermod and permissions on files (data for backend)

pull/296/head
Cédric Bonhomme 2020-04-24 15:55:29 +02:00
parent e0f9d1265b
commit 737774a151
No known key found for this signature in database
GPG Key ID: A1CB94DE57B7A70D
1 changed files with 12 additions and 9 deletions

View File

@ -129,12 +129,6 @@ ln -s ./../../vendor/monarc/frontoffice FrontOffice
cd $PATH_TO_MONARC cd $PATH_TO_MONARC
mkdir -p $PATH_TO_MONARC/data/cache
mkdir -p $PATH_TO_MONARC/data/LazyServices/Proxy
mkdir -p $PATH_TO_MONARC/data/DoctrineORMModule/Proxy
chown -R www-data data
chmod -R 777 data
# Front-end # Front-end
mkdir node_modules mkdir node_modules
@ -151,9 +145,6 @@ if [ $? -ne 0 ]; then
fi fi
cd .. cd ..
# chown -R www-data $PATH_TO_MONARC
# chgrp -R www-data $PATH_TO_MONARC
chmod -R 777 $PATH_TO_MONARC
echo -e "\n--- Add a VirtualHost for MONARC ---\n" echo -e "\n--- Add a VirtualHost for MONARC ---\n"
@ -265,6 +256,18 @@ sudo npm install -g grunt-cli
echo -e "\n--- Creating cache folders for backend… ---\n"
mkdir -p $PATH_TO_MONARC/data/cache
mkdir -p $PATH_TO_MONARC/data/LazyServices/Proxy
mkdir -p $PATH_TO_MONARC/data/DoctrineORMModule/Proxy
echo -e "\n--- Adjusting user mod… ---\n"
sudo usermod -aG www-data vagrant
sudo usermod -aG vagrant www-data
echo -e "\n--- Update the project… ---\n" echo -e "\n--- Update the project… ---\n"
sudo chown -R $USER:$(id -gn $USER) /home/vagrant/.config sudo chown -R $USER:$(id -gn $USER) /home/vagrant/.config