mirror of
https://github.com/YunoHost-Apps/movim_ynh.git
synced 2024-09-03 19:46:19 +02:00
Change maintainer and fix package linter issues
This commit is contained in:
parent
ef940a1dd1
commit
99a03e8ba4
7 changed files with 64 additions and 12 deletions
|
@ -390,3 +390,6 @@ catch_workers_output = yes
|
||||||
;php_admin_value[error_log] = /var/log/fpm-php.www.log
|
;php_admin_value[error_log] = /var/log/fpm-php.www.log
|
||||||
;php_admin_flag[log_errors] = on
|
;php_admin_flag[log_errors] = on
|
||||||
;php_admin_value[memory_limit] = 32M
|
;php_admin_value[memory_limit] = 32M
|
||||||
|
|
||||||
|
php_admin_value[open_basedir] = none
|
||||||
|
php_admin_value[date.timezone] = "YHTZ"
|
|
@ -1,2 +0,0 @@
|
||||||
open_basedir = none
|
|
||||||
date.timezone = "YHTZ"
|
|
|
@ -5,20 +5,24 @@
|
||||||
"description": {
|
"description": {
|
||||||
"en": "The Kickass Social Network"
|
"en": "The Kickass Social Network"
|
||||||
},
|
},
|
||||||
"version": "0.13.0~ynh1",
|
"version": "0.13.0~ynh2",
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">= 3.0"
|
"yunohost": ">= 3.4.0"
|
||||||
},
|
},
|
||||||
"url": "https://movim.eu/",
|
"url": "https://movim.eu",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
"name": "Jean-Baptiste Holcroft",
|
||||||
|
"email": "jean-baptiste@holcroft.fr"
|
||||||
|
},
|
||||||
|
"previous_maintainers": [{
|
||||||
"name": "src386",
|
"name": "src386",
|
||||||
"email": "soyouz@src386.org",
|
"email": "soyouz@src386.org",
|
||||||
"url": "http://github.com/src386"
|
"url": "http://github.com/src386"
|
||||||
},
|
}],
|
||||||
"services": [
|
"services": [
|
||||||
"nginx",
|
"nginx",
|
||||||
"php5-fpm",
|
"php-fpm",
|
||||||
"mysql",
|
"mysql",
|
||||||
"metronome"
|
"metronome"
|
||||||
],
|
],
|
||||||
|
@ -64,6 +68,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "language",
|
"name": "language",
|
||||||
|
"type": "string",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Pod language",
|
"en": "Pod language",
|
||||||
"fr": "Langue du pod"
|
"fr": "Langue du pod"
|
||||||
|
@ -73,12 +78,12 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "ssoenabled",
|
"name": "ssoenabled",
|
||||||
|
"type": "boolean",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Enable SSO support (autologin) ?",
|
"en": "Enable SSO support (autologin) ?",
|
||||||
"fr": "Activer le support SSO (connexin auto) ?"
|
"fr": "Activer le support SSO (connexin auto) ?"
|
||||||
},
|
},
|
||||||
"choices": ["Yes", "No"],
|
"default": false
|
||||||
"default": "Yes"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
18
scripts/backup
Normal file
18
scripts/backup
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# GENERIC START
|
||||||
|
#=================================================
|
||||||
|
# IMPORT GENERIC HELPERS
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
source ../settings/scripts/_common.sh
|
||||||
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# MANAGE SCRIPT FAILURE
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
# Exit if an error occurs during the execution of the script
|
||||||
|
ynh_abort_if_errors
|
||||||
|
|
|
@ -123,7 +123,7 @@ ynh_system_user_create "$app"
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Create a dedicated php-fpm config
|
# Create a dedicated php-fpm config
|
||||||
ynh_replace_string "YHTZ" "$timezone" ../conf/php-fpm.ini
|
ynh_replace_string "YHTZ" "$timezone" ../conf/php-fpm.conf
|
||||||
ynh_add_fpm_config
|
ynh_add_fpm_config
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -190,7 +190,7 @@ chmod 400 "${final_path}/config/db.inc.php"
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# SSOwat configuration
|
# SSOwat configuration
|
||||||
if [[ "$ssoenabled" = "No" ]]; then
|
if [[ "$ssoenabled" -eq 0 ]]; then
|
||||||
ynh_app_setting_set "$app" skipped_uris "/"
|
ynh_app_setting_set "$app" skipped_uris "/"
|
||||||
(cd "$final_path" && php mud.php config --xmppwhitelist="$domain")
|
(cd "$final_path" && php mud.php config --xmppwhitelist="$domain")
|
||||||
undo_sso_patch
|
undo_sso_patch
|
||||||
|
|
18
scripts/restore
Normal file
18
scripts/restore
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# GENERIC START
|
||||||
|
#=================================================
|
||||||
|
# IMPORT GENERIC HELPERS
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
source ../settings/scripts/_common.sh
|
||||||
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# MANAGE SCRIPT FAILURE
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
# Exit if an error occurs during the execution of the script
|
||||||
|
ynh_abort_if_errors
|
||||||
|
|
|
@ -42,6 +42,16 @@ if [ -z "$db_name" ]; then
|
||||||
ynh_app_setting_set "$app" db_name "$db_name"
|
ynh_app_setting_set "$app" db_name "$db_name"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Fix ssoenabled as a boolean value
|
||||||
|
if [ "$ssoenabled" = "Yes" ]; then
|
||||||
|
ynh_app_setting_set $app ssoenabled 1
|
||||||
|
ssoenabled=1
|
||||||
|
elif [ "$ssoenabled" = "No" ]; then
|
||||||
|
ynh_app_setting_set $app ssoenabled 0
|
||||||
|
ssoenabled=0
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# ACTIVE TRAP
|
# ACTIVE TRAP
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue