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:
parent
db0421d424
commit
fa6160d9f0
6 changed files with 21 additions and 51 deletions
22
README.md
22
README.md
|
@ -1,7 +1,27 @@
|
||||||
# HumHub for YunoHost
|
# 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
|
## 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:**
|
**More information:**
|
||||||
https://yunohost.org/
|
https://yunohost.org/
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'components' => [
|
'components' => [
|
||||||
'urlManager' => [
|
|
||||||
'urlFormat' => 'path',
|
|
||||||
'showScriptName' => false,
|
|
||||||
],
|
|
||||||
'db' => [
|
'db' => [
|
||||||
'dsn' => 'mysql:host=localhost;dbname=DBNAME_TO_CHANGE',
|
'dsn' => 'mysql:host=localhost;dbname=DBNAME_TO_CHANGE',
|
||||||
'username' => 'DBUSER_TO_CHANGE',
|
'username' => 'DBUSER_TO_CHANGE',
|
||||||
|
|
|
@ -41,33 +41,6 @@
|
||||||
},
|
},
|
||||||
"example": "/humhub",
|
"example": "/humhub",
|
||||||
"default": "/humhub"
|
"default": "/humhub"
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "admin",
|
|
||||||
"type": "user",
|
|
||||||
"ask": {
|
|
||||||
"en": "Choose an admin user",
|
|
||||||
"fr": "Choisissez l’administrateur"
|
|
||||||
},
|
|
||||||
"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"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,9 +9,6 @@ version='1.1.0'
|
||||||
# Retrieve arguments
|
# Retrieve arguments
|
||||||
domain=$YNH_APP_ARG_DOMAIN
|
domain=$YNH_APP_ARG_DOMAIN
|
||||||
path=$YNH_APP_ARG_PATH
|
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 YunoHost helpers
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
@ -47,7 +44,6 @@ version='1.1.0'
|
||||||
|
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
sudo chown -R root: $src_path
|
sudo chown -R root: $src_path
|
||||||
sudo chown -R www-data: $src_path/public_html
|
|
||||||
|
|
||||||
# Cron
|
# Cron
|
||||||
echo "30 * * * * $src_path/public_html/yiic cron hourly >/dev/null 2>&1" > 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
|
sed -i "s@YNH_WWW_ALIAS@$src_path/@g" $nginx_conf
|
||||||
sudo cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.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
|
# Reload services
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
|
|
|
@ -26,7 +26,6 @@ app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
# Restore permissions to app files
|
# Restore permissions to app files
|
||||||
sudo chown -R root: $src_path
|
sudo chown -R root: $src_path
|
||||||
sudo chown -R www-data: $src_path/public_html
|
|
||||||
|
|
||||||
# MySQL
|
# MySQL
|
||||||
dbname=$app
|
dbname=$app
|
||||||
|
|
|
@ -12,9 +12,6 @@ version='1.1.0'
|
||||||
# Retrieve app settings
|
# Retrieve app settings
|
||||||
domain=$(ynh_app_setting_get "$app" domain)
|
domain=$(ynh_app_setting_get "$app" domain)
|
||||||
path=$(ynh_app_setting_get "$app" path)
|
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
|
# Remove trailing "/" for next commands
|
||||||
path=${path%/}
|
path=${path%/}
|
||||||
|
@ -27,7 +24,6 @@ version='1.1.0'
|
||||||
|
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
sudo chown -R root: $src_path
|
sudo chown -R root: $src_path
|
||||||
sudo chown -R www-data: $src_path/public_html
|
|
||||||
|
|
||||||
# Cron
|
# Cron
|
||||||
echo "30 * * * * $src_path/public_html/yiic cron hourly >/dev/null 2>&1" > 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
|
sed -i "s@YNH_WWW_ALIAS@$src_path/@g" $nginx_conf
|
||||||
sudo cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.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
|
# Reload nginx service
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
|
|
Loading…
Reference in a new issue