Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Context Sensitive Group
freedombone
Commits
50d936e7
Commit
50d936e7
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Sequence of installation
parent
974ba874
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
src/freedombone-app-smilodon
+15
-7
15 additions, 7 deletions
src/freedombone-app-smilodon
with
15 additions
and
7 deletions
src/freedombone-app-smilodon
+
15
−
7
View file @
50d936e7
...
...
@@ -291,13 +291,25 @@ function install_smilodon {
groupadd smilodon
useradd
-c
"Smilodon system account"
-d
$SMILODON_PATH
-m
-r
-g
smilodon smilodon
SMILODON_ONION_HOSTNAME
=
$(
add_onion_service smilodon 80
${
SMILODON_ONION_PORT
}
)
if
[
!
$SMILODON_SECRET_KEY
]
;
then
SMILODON_SECRET_KEY
=
"
$(
create_password 30
)$(
create_password 30
)$(
create_password 30
)$(
create_password 30
)
"
fi
export
smilodon_domain_name
=
$SMILODON_ONION_HOSTNAME
export
secret_key
=
'$SMILODON_SECRET_KEY'
export
mongodb_username
=
'smilodon'
export
mongodb_password
=
'$SMILODON_ADMIN_PASSWORD'
export
smilodon_admin_address
=
$MY_EMAIL_ADDRESS
export
MAIL_SERVER
=
'localhost'
export
MAIL_PORT
=
25
function_check install_mongodb
install_mongodb smilodon
smilodon_create_database
SMILODON_ONION_HOSTNAME
=
$(
add_onion_service smilodon 80
${
SMILODON_ONION_PORT
}
)
pip3
install
-r
requirements.txt
if
[
!
"
$?
"
=
"0"
]
;
then
echo
$'Unable to install smilodon dependencies'
...
...
@@ -319,14 +331,9 @@ function install_smilodon {
nginx_ensite smilodon
systemctl
enable
mongodb
systemctl restart mongodb
systemctl restart nginx
chown
-R
smilodon:smilodon
${
SMILODON_PATH
}
if
[
!
$SMILODON_SECRET_KEY
]
;
then
SMILODON_SECRET_KEY
=
"
$(
create_password 30
)$(
create_password 30
)$(
create_password 30
)$(
create_password 30
)
"
fi
echo
'#!/bin/bash'
>
${
SMILODON_PATH
}
/run_smilodon.sh
echo
"cd
${
SMILODON_PATH
}
"
>>
${
SMILODON_PATH
}
/run_smilodon.sh
echo
"export smilodon_domain_name=
$SMILODON_ONION_HOSTNAME
"
>>
${
SMILODON_PATH
}
/run_smilodon.sh
...
...
@@ -358,6 +365,7 @@ function install_smilodon {
systemctl
enable
smilodon
systemctl daemon-reload
systemctl start smilodon
systemctl restart nginx
${
PROJECT_NAME
}
-pass
-u
$MY_USERNAME
-a
smilodon
-p
"
$SMILODON_ADMIN_PASSWORD
"
...
...
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