1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/humhub_ynh.git synced 2024-09-03 19:26:11 +02:00

Improvements

This commit is contained in:
scith 2016-08-21 23:56:32 +02:00
parent db0421d424
commit fa6160d9f0
6 changed files with 21 additions and 51 deletions

View file

@ -1,7 +1,27 @@
# HumHub for YunoHost
- HumHub has to be postinstalled manually
- LDAP has to be setup manually (see below)
- LDAP auth does not work with users having multiple email addresses
- Users cannot be logged in automatically
LDAP settings:
* hostname : localhost
* port : 389
* baseDn : ou=users,dc=yunohost,dc=org
* loginFilter : (uid=%s)
* userFilter : objectClass=mailAccount
* usernameAttribute : uid
* emailAttribute : mail
## HumHub
- TBD
HumHub is a feature rich and highly flexible OpenSource Social Network Kit written in PHP.
It's perfect for individual:
- Social Intranets
- Enterprise Social Networks
- Private Social Networks
**More information:**
https://yunohost.org/

View file

@ -2,10 +2,6 @@
return [
'components' => [
'urlManager' => [
'urlFormat' => 'path',
'showScriptName' => false,
],
'db' => [
'dsn' => 'mysql:host=localhost;dbname=DBNAME_TO_CHANGE',
'username' => 'DBUSER_TO_CHANGE',

View file

@ -41,33 +41,6 @@
},
"example": "/humhub",
"default": "/humhub"
},
{
"name": "admin",
"type": "user",
"ask": {
"en": "Choose an admin user",
"fr": "Choisissez ladministrateur"
},
"example": "johndoe"
},
{
"name": "is_public",
"type": "boolean",
"ask": {
"en": "Is it a public application?",
"fr": "Est-ce une application publique ?"
},
"default": true
},
{
"name": "language",
"ask": {
"en": "Choose the application language",
"fr": "Choisissez la langue de l'application"
},
"choices": ["fr", "en"],
"default": "fr"
}
]
}

View file

@ -9,9 +9,6 @@ version='1.1.0'
# Retrieve arguments
domain=$YNH_APP_ARG_DOMAIN
path=$YNH_APP_ARG_PATH
admin=$YNH_APP_ARG_ADMIN
is_public=$YNH_APP_ARG_IS_PUBLIC
language=$YNH_APP_ARG_LANGUAGE
# Source YunoHost helpers
source /usr/share/yunohost/helpers
@ -47,7 +44,6 @@ version='1.1.0'
# Set permissions to app files
sudo chown -R root: $src_path
sudo chown -R www-data: $src_path/public_html
# Cron
echo "30 * * * * $src_path/public_html/yiic cron hourly >/dev/null 2>&1" > cron
@ -61,10 +57,5 @@ version='1.1.0'
sed -i "s@YNH_WWW_ALIAS@$src_path/@g" $nginx_conf
sudo cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf
# If app is public, add url to SSOWat conf as skipped_uris
if [[ $is_public -eq 1 ]]; then
ynh_app_setting_set "$app" unprotected_uris "/"
fi
# Reload services
sudo service nginx reload

View file

@ -26,7 +26,6 @@ app=$YNH_APP_INSTANCE_NAME
# Restore permissions to app files
sudo chown -R root: $src_path
sudo chown -R www-data: $src_path/public_html
# MySQL
dbname=$app

View file

@ -12,9 +12,6 @@ version='1.1.0'
# Retrieve app settings
domain=$(ynh_app_setting_get "$app" domain)
path=$(ynh_app_setting_get "$app" path)
admin=$(ynh_app_setting_get "$app" admin)
is_public=$(ynh_app_setting_get "$app" is_public)
language=$(ynh_app_setting_get "$app" language)
# Remove trailing "/" for next commands
path=${path%/}
@ -27,7 +24,6 @@ version='1.1.0'
# Set permissions to app files
sudo chown -R root: $src_path
sudo chown -R www-data: $src_path/public_html
# Cron
echo "30 * * * * $src_path/public_html/yiic cron hourly >/dev/null 2>&1" > cron
@ -41,10 +37,5 @@ version='1.1.0'
sed -i "s@YNH_WWW_ALIAS@$src_path/@g" $nginx_conf
sudo cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf
# If app is public, add url to SSOWat conf as skipped_uris
if [[ $is_public -eq 1 ]]; then
ynh_app_setting_set "$app" unprotected_uris "/"
fi
# Reload nginx service
sudo service nginx reload