mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-10 19:57:09 +03:00
add shellscript helper to install external dependencies (non-python dependencies) listed on requirements.apt file
This commit is contained in:
parent
1ceae50833
commit
164a496a85
20
{{cookiecutter.repo_name}}/install_os_dependencies.sh
Executable file
20
{{cookiecutter.repo_name}}/install_os_dependencies.sh
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo -e "\nYou must run this with root privilege" 2>&1
|
||||
echo -e "Please do:\n" 2>&1
|
||||
echo "sudo ./${0##*/}" 2>&1
|
||||
echo -e "\n" 2>&1
|
||||
|
||||
exit 1
|
||||
else
|
||||
|
||||
apt-get update
|
||||
|
||||
# Install the basic compilation dependencies and other required libraries of this project
|
||||
cat requirements.apt | grep -v "#" | xargs sudo apt-get install -y
|
||||
|
||||
# cleaning downloaded packages from apt-get cache
|
||||
apt-get clean
|
||||
|
||||
fi
|
Loading…
Reference in New Issue
Block a user