Commit 7a63f7b1 authored by Romain Loth's avatar Romain Loth

install: permissions au groupe gargantua sur le dossier des sources

parent b5805aa4
......@@ -43,6 +43,22 @@ function uncompress_lib {
#~ esac
echo "::: CREATE GROUP :::";
if grep -q 'gargantua' /etc/groups
then
echo "Using existing group 'gargantua'"
else
sudo groupadd gargantua
fi
# adding the users to the group
current_user=$(who -m | cut -d' ' -f1)
sudo usermod -G gargantua $current_user
sudo usermod -G gargantua gargantua
# changing the group of the sourcedir
sudo chown -R :gargantua /srv/gargantext
echo "::: SETUP ENV :::";
for dir in "/srv/gargantext_lib" "/srv/gargantext_static" "/srv/gargantext_media"; do
sudo mkdir -p $dir ;
......@@ -67,5 +83,3 @@ sudo docker run \
sudo docker rm -f `docker ps -a | grep -v CONTAINER | awk '{print $1 }'`
sudo cp ./run /srv/gargantext/start
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment