Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FarolDjango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PET Computação
FarolDjango
Commits
bb9b4594
Commit
bb9b4594
authored
6 years ago
by
omdj17
Browse files
Options
Downloads
Patches
Plain Diff
Update install.sh
parent
21cd1182
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install.sh
+13
-28
13 additions, 28 deletions
install.sh
with
13 additions
and
28 deletions
install.sh
+
13
−
28
View file @
bb9b4594
#!/bin/bash
PACKAGES
=
ABSOLUTE_PATH
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
#Checa se o usuário é root
if
[[
$EUID
-ne
0
]]
then
ROOT
=
"sudo"
else
ROOT
=
fi
#Descobre a distribuição
declare
-A
osInfo
;
osInfo[/etc/arch-release]
=
"pacman -S"
osInfo[/etc/debian_version]
=
"apt-get install"
for
f
in
${
!osInfo[@]
}
do
if
[[
-f
$f
]]
;
then
DISTRO
=
${
osInfo
[
$f
]
}
fi
done
function
test
{
echo
$DISTRO
}
function
install
{
$(
echo
"
$ROOT
$DISTRO
python3"
)
$(
echo
"
$ROOT
$DISTRO
pip3"
)
$(
echo
"
$ROOT
pip3 --upgrade pipenv"
)
pipenv
install
sudo
apt-get update
sudo
apt-get upgrade
-yy
sudo
apt-get
install
python3
-yy
sudo
apt-get
install
python3-pip
sudo
pip3
install
--upgrade
pip
sudo
pip3
install
--upgrade
pipenv
pipenv
install
pipenv run python ./src/manage.py makemigrations documento
pipenv run python ./src/manage.py makemigrations usuario
pipenv run python ./src/manage.py migrate
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment