Commit abd0ee75 authored by Yehoshua Talansky's avatar Yehoshua Talansky

add permission for apps user

parent f15f5455
......@@ -20,6 +20,10 @@ chmod +x /opt/bin/docker-compose
echo "now provisioning apps user ..."
#https://coreos.com/os/docs/latest/adding-users.html
#add user called apps
sudo useradd -p "*" -U -m apps -G sudo
sudo -u apps bash << EOF
#remove bashrc and replace with its own to make sure it has the path to docker-compose
rm ~/.bashrc
......@@ -38,8 +42,11 @@ cat ~/.ssh/id_rsa
echo "now add private key above for gitlab secret jobs so it can login to core user"
EOF
#give apps user docker permissions
sudo usermod -aG docker apps
#From https://github.com/docker/compose/issues/3241 restart docker on restart
systemctl enable docker.service
systemctl start docker.service
echo "Done"
echo "Done"
\ No newline at end of file
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