mirror of
https://github.com/YunoHost-Apps/rainloop_ynh.git
synced 2024-09-03 20:16:18 +02:00
commit
ecd879e2dc
4 changed files with 15 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
||||||
# Rainloop for YunoHost
|
# Rainloop for YunoHost
|
||||||
|
|
||||||
* [rainloop](http://rainloop.net/ )
|
* [rainloop](http://rainloop.net/ ): 1.9.3.365
|
||||||
|
|
||||||
## English
|
## English
|
||||||
Rainloop is a lightweight webmail.
|
Rainloop is a lightweight webmail.
|
||||||
|
@ -16,7 +16,7 @@ https://DOMAIN.TLD/baikal/card.php/addressbooks/USER/default/
|
||||||
|
|
||||||
- to upgrade the app once a new rainloop version is available, simply run in a local shell via ssh or otherwise :
|
- to upgrade the app once a new rainloop version is available, simply run in a local shell via ssh or otherwise :
|
||||||
|
|
||||||
``sudo yunohost app upgrade -u https://github.com/polytan02/rainloop_ynh rainloop``
|
``sudo yunohost app upgrade -u https://github.com/YunoHostPlugins-Testing/rainloop_ynh rainloop``
|
||||||
|
|
||||||
|
|
||||||
## Français
|
## Français
|
||||||
|
@ -34,5 +34,5 @@ https://DOMAIN.TLD/baikal/card.php/addressbooks/UTILISATEUR/default/
|
||||||
|
|
||||||
- pour mettre à jour rainloop lorsqu'une nouvelle version est disponible, lancez en console locale (ssh ou autre) :
|
- pour mettre à jour rainloop lorsqu'une nouvelle version est disponible, lancez en console locale (ssh ou autre) :
|
||||||
|
|
||||||
``sudo yunohost app upgrade -u https://github.com/polytan02/rainloop_ynh rainloop``
|
``sudo yunohost app upgrade -u https://github.com/YunoHostPlugins-Testing/rainloop_ynh rainloop``
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
imap_host = "domain.tld"
|
imap_host = "localhost"
|
||||||
imap_port = 993
|
imap_port = 993
|
||||||
imap_secure = "SSL"
|
imap_secure = "SSL"
|
||||||
imap_short_login = On
|
imap_short_login = On
|
||||||
|
@ -7,7 +7,7 @@ sieve_allow_raw = Off
|
||||||
sieve_host = ""
|
sieve_host = ""
|
||||||
sieve_port = 4190
|
sieve_port = 4190
|
||||||
sieve_secure = "None"
|
sieve_secure = "None"
|
||||||
smtp_host = "domain.tld"
|
smtp_host = "localhost"
|
||||||
smtp_port = 465
|
smtp_port = 465
|
||||||
smtp_secure = "SSL"
|
smtp_secure = "SSL"
|
||||||
smtp_short_login = On
|
smtp_short_login = On
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
},
|
},
|
||||||
"url": "http://rainloop.net/",
|
"url": "http://rainloop.net/",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
"name": "polytan02",
|
"name": "scith, Djip007",
|
||||||
"email": "polytan02@mcgva.org"
|
"email": "none@domaine.org"
|
||||||
},
|
},
|
||||||
"multi_instance": "false",
|
"multi_instance": "false",
|
||||||
"arguments": {
|
"arguments": {
|
||||||
|
|
|
@ -23,15 +23,20 @@ app=rainloop
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Generate random password, use 'rainloop' as database name and user and intialize databse
|
# Generate random password
|
||||||
db_pwd=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d 'A-Za-z0-9' | sed -n 's/\(.\{24\}\).*/\1/p')
|
db_pwd=$(dd if=/dev/urandom bs=1 count=200 2> /dev/null | tr -c -d 'A-Za-z0-9' | sed -n 's/\(.\{24\}\).*/\1/p')
|
||||||
|
|
||||||
|
# Use 'rainloop' as database name and user
|
||||||
db_user=$app
|
db_user=$app
|
||||||
|
|
||||||
|
# Initialize database and store mysql password for upgrade
|
||||||
sudo yunohost app initdb $db_user -p $db_pwd
|
sudo yunohost app initdb $db_user -p $db_pwd
|
||||||
sudo yunohost app setting $app mysqlpwd -v $db_pwd
|
sudo yunohost app setting $app mysqlpwd -v $db_pwd
|
||||||
|
|
||||||
# Create the final path and copy sources
|
# Create the final path and copy sources
|
||||||
final_path=/var/www/$app
|
final_path=/var/www/$app
|
||||||
rainloop_path=${final_path}/app
|
rainloop_path=${final_path}/app
|
||||||
|
#rainloop_path=${final_path}
|
||||||
|
|
||||||
sudo rm -rf $final_path
|
sudo rm -rf $final_path
|
||||||
sudo mkdir -p $final_path
|
sudo mkdir -p $final_path
|
||||||
|
@ -80,9 +85,8 @@ app=rainloop
|
||||||
|
|
||||||
# get list of ldap domains
|
# get list of ldap domains
|
||||||
alldomains=`ldapsearch -LLL -x -b ou=domains,dc=yunohost,dc=org -s one "objectclass=top" virtualdomain | grep -v "dn:" | sed "s/virtualdomain://" `
|
alldomains=`ldapsearch -LLL -x -b ou=domains,dc=yunohost,dc=org -s one "objectclass=top" virtualdomain | grep -v "dn:" | sed "s/virtualdomain://" `
|
||||||
for alldomain in $alldomains ; do
|
for domain in $alldomains ; do
|
||||||
sudo cp ../conf/data/domains/domain.tld.ini $rainloop_path/data/_data_/_default_/domains/$alldomain.ini
|
sudo cp ../conf/data/domains/domain.tld.ini $rainloop_path/data/_data_/_default_/domains/$domain.ini
|
||||||
sudo sed -i "s@domain.tld@$alldomain@g" $rainloop_path/data/_data_/_default_/domains/$alldomain.ini
|
|
||||||
done
|
done
|
||||||
sudo cp ../conf/data/domains/disabled $rainloop_path/data/_data_/_default_/domains/disabled
|
sudo cp ../conf/data/domains/disabled $rainloop_path/data/_data_/_default_/domains/disabled
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue