progress on installer sh for linux
This commit is contained in:
parent
ade8eb25f8
commit
6d787c7d6d
1 changed files with 68 additions and 2 deletions
|
@ -1,4 +1,70 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "welcome to libre.sh installer"
|
||||
echo "WIP"
|
||||
#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 "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
|
Loading…
Reference in a new issue