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
6d787c7d
Commit
6d787c7d
authored
6 years ago
by
Michel Memeteau
Browse files
Options
Downloads
Patches
Plain Diff
progress on installer sh for linux
parent
ade8eb25
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
install.linux.sh
+68
-2
68 additions, 2 deletions
install.linux.sh
with
68 additions
and
2 deletions
install.linux.sh
+
68
−
2
View file @
6d787c7d
#!/bin/bash
#!/bin/bash
echo
"welcome to libre.sh installer"
#Recommendation
- Systemd
(
debian
>
8 , Ubuntu 16.04 , CentOS 7 ...
)
# System env vars
## domain handling
### change to your domain vendor ( ovh , online, )
DOMAIN_SERVER
=
namecheap
### Namecheap specific
NAMECHEAP_URL
=
"namecheap.com"
NAMECHEAP_API_USER
=
"pierreo"
NAMECHEAP_API_KEY
=
### ovh specific
OVH_URL
=
"eu.api.ovh.com"
OVH_API_USER
=
""
OVH_API_KEY
=
IP
=
"curl -s http://icanhazip.com/"
FirstName
=
"Pierre"
LastName
=
"Ozoux"
Address
=
""
PostalCode
=
""
Country
=
"Portugal"
Phone
=
"+351.967184553"
EmailAddress
=
"pierre@ozoux.net"
City
=
"Lisbon"
CountryCode
=
"PT"
## Backup
BACKUP_DESTINATION
=
root@xxxxx:port
## SMTP
MAIL_USER
=
MAIL_PASS
=
MAIL_HOST
=
mail.indie.host
MAIL_PORT
=
587
echo
"Welcome to libre.sh installer"
echo
"WIP"
echo
"WIP"
echo
"1- setting up system variables"
echo
"2- installing libre.sh"
# install Libre.sh
git clone https://lab.libreho.st/libre.sh/compose.libre.sh /libre.sh
mkdir
-p
/
{
data,system
}
mkdir
/data/trash
cp
/libre.sh/unit-files/
*
/etc/systemd/system
&&
systemctl daemon-reload
systemctl
enable
web-net.service
systemctl start web-net.service
mkdir
-p
/opt/bin
cp
/libre.sh/utils/
*
/opt/bin/
# add /opt/bin path
echo
"3 - updating PATH"
cat
>
/etc/profile.d/libre.sh
<<
EOF
export PATH=
$PATH
:/opt/bin
EOF
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