Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
compose.libre.sh
Manage
Activity
Members
Labels
Plan
Issues
18
Issue boards
Milestones
Wiki
Code
Merge requests
3
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
libre.sh
compose.libre.sh
Commits
48ed6c6d
Commit
48ed6c6d
authored
5 years ago
by
Michel Memeteau
Browse files
Options
Downloads
Patches
Plain Diff
Update install.linux.sh
parent
14e78c6b
No related branches found
No related tags found
1 merge request
!187
Resolve "Create an install script"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install.linux.sh
+19
-7
19 additions, 7 deletions
install.linux.sh
with
19 additions
and
7 deletions
install.linux.sh
+
19
−
7
View file @
48ed6c6d
#!/bin/bash
#!/bin/bash
#Recommendation
- Systemd
(
debian
>
8 , Ubuntu 16.04 , CentOS 7 ...
)
# System env vars
# System env vars
## domain handling
## domain handling
### change to your domain vendor ( ovh , online, )
### TODO : Specify you template repo ROOT
TEMPLATES_ROOT
=
lab.libreho.st/libre.sh/compose/
### TODO : change to your domain vendor ( ovh , online, )
DOMAIN_SERVER
=
namecheap
DOMAIN_SERVER
=
namecheap
### Namecheap specific
### Namecheap specific
...
@@ -43,19 +45,29 @@ MAIL_PORT=587
...
@@ -43,19 +45,29 @@ MAIL_PORT=587
echo
"Welcome to libre.sh installer"
echo
"Welcome to libre.sh installer"
echo
"WIP"
echo
"WIP"
echo
" setting up system variables"
# STEP add kernel parameter
# STEP add kernel parameter
echo
" Define environnement
# STEP Define environnement
echo
" setting up system variables"
# STEP "install docker-compose"
# STEP "install docker-compose"
# TODO : Fix a version for docker compose ?
mkdir
-p
/opt/bin
&&
\
dockerComposeVersion
=
$(
curl
-s
https://api.github.com/repos/docker/compose/releases/latest|grep tag_name|cut
-d
'"'
-f4
)
&&
\
curl
-L
https://github.com/docker/compose/releases/download/
$dockerComposeVersion
/docker-compose-
`
uname
-s
`
-
`
uname
-m
`
>
/opt/bin/docker-compose
&&
\
chmod
+x /opt/bin/docker-compose
# STEP "
installing libre.sh
"
# STEP install Libre.sh
# STEP install Libre.sh
echo
" installing libre.sh"
git clone https://lab.libreho.st/libre.sh/compose.libre.sh /libre.sh
git clone https://lab.libreho.st/libre.sh/compose.libre.sh /libre.sh
mkdir
-p
/
{
data,system
}
mkdir
-p
/
{
data,system
}
mkdir
/data/trash
mkdir
/data/trash
...
@@ -73,4 +85,4 @@ echo "3 - updating PATH"
...
@@ -73,4 +85,4 @@ echo "3 - updating PATH"
cat
>
/etc/profile.d/libre.sh
<<
EOF
cat
>
/etc/profile.d/libre.sh
<<
EOF
export PATH=
$PATH
:/opt/bin
export PATH=
$PATH
:/opt/bin
EOF
EOF
chmod 644 /etc/profile.d/libre.sh
chmod
644 /etc/profile.d/libre.sh
\ No newline at end of file
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