aboutsummaryrefslogtreecommitdiff
path: root/scripts/install_dependencies.sh
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2023-10-08 10:43:38 -0600
committerNavan Chauhan <navanchauhan@gmail.com>2023-10-08 10:43:38 -0600
commitdf4e812dc7f73eb37a86ea5525b3f15f53346b79 (patch)
treeeb6b9dd79e982bdc3df448b596f28213ee12659f /scripts/install_dependencies.sh
parenta924ac2766e12d1b28c1bb69178b8b25039c4c0b (diff)
add service files
Diffstat (limited to 'scripts/install_dependencies.sh')
-rwxr-xr-xscripts/install_dependencies.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/install_dependencies.sh b/scripts/install_dependencies.sh
index ea78008..cfc98a5 100755
--- a/scripts/install_dependencies.sh
+++ b/scripts/install_dependencies.sh
@@ -4,5 +4,10 @@ then
curl -sSL https://install.python-poetry.org | python3 -
fi
export PATH="/root/.local/bin:$PATH"
-cd /home/ec2-user/dep-dir
-/root/.local/bin/poetry install
+cd /home/ec2-user
+sudo chown -R ec2-user:ec2-user /home/ec2-user/deps-dir
+cd /home/ec2-user/deps-dir
+sudo -u ec2-user bash -c 'cd /home/ec2-user/deps-dir && /home/ec2-user/.local/bin/poetry install'
+
+systemctl daemon-reload
+